write Quest::export_qst

This commit is contained in:
Martin Michelsen
2023-03-23 22:22:21 -07:00
parent c48a998750
commit dcebc61b13
3 changed files with 97 additions and 2 deletions
+3
View File
@@ -55,6 +55,7 @@ public:
std::string file_basename; // we append -<version>.<bin/dat> when reading
FileFormat file_format;
bool has_mnm_extension;
bool is_dlq_encoded;
std::u16string name;
std::u16string short_description;
std::u16string long_description;
@@ -84,6 +85,8 @@ public:
static std::string decode_dlq(const std::string& filename);
static std::pair<std::string, std::string> decode_qst(const std::string& filename);
std::string export_qst(GameVersion version) const;
private:
// these are populated when requested
mutable std::shared_ptr<std::string> bin_contents_ptr;