compress DOL files before sending them to clients

This commit is contained in:
Martin Michelsen
2023-05-27 09:57:36 -07:00
parent 9ec72212cf
commit 54a734e049
8 changed files with 200 additions and 10 deletions
+2 -1
View File
@@ -76,12 +76,13 @@ struct DOLFileIndex {
std::string data;
};
bool files_compressed;
std::vector<std::shared_ptr<DOLFile>> item_id_to_file;
std::map<std::string, std::shared_ptr<DOLFile>> name_to_file;
std::shared_ptr<const Menu> menu;
DOLFileIndex() = default;
explicit DOLFileIndex(const std::string& directory);
DOLFileIndex(const std::string& directory, bool compress);
inline bool empty() const {
return this->name_to_file.empty() && this->item_id_to_file.empty();