sort DOL files by name

This commit is contained in:
Martin Michelsen
2026-05-12 07:37:36 -07:00
parent 21eae36c8f
commit c315b828ad
2 changed files with 8 additions and 6 deletions
+1 -2
View File
@@ -20,13 +20,12 @@ struct DOLFileIndex {
};
std::vector<std::shared_ptr<File>> item_id_to_file;
std::unordered_map<std::string, std::shared_ptr<File>> name_to_file;
std::shared_ptr<const Menu> menu;
DOLFileIndex() = default;
explicit DOLFileIndex(const std::string& directory);
inline bool empty() const {
return this->name_to_file.empty() && this->item_id_to_file.empty();
return this->item_id_to_file.empty();
}
};