[graphics] Rewrite of texture system (#1212)

* loading cleanup

* temp

* add texture replacement

* fix windows

* oops

* fix windows

* final cleanup
This commit is contained in:
water111
2022-03-02 20:01:37 -05:00
committed by GitHub
parent 3a54a521e3
commit a5b383c78a
49 changed files with 1141 additions and 1137 deletions
+6
View File
@@ -198,6 +198,11 @@ int main(int argc, char** argv) {
}
fmt::print("[Mem] After textures: {} MB\n", get_peak_rss() / (1024 * 1024));
// todo config
auto replacements_path = file_util::get_file_path({"texture_replacements"});
if (std::filesystem::exists(replacements_path)) {
tex_db.replace_textures(replacements_path);
}
if (config.process_game_count) {
auto result = db.process_game_count_file();
@@ -207,6 +212,7 @@ int main(int argc, char** argv) {
}
if (config.levels_extract) {
extract_common(db, tex_db, "GAME.CGO");
for (auto& lev : config.levels_to_extract) {
extract_from_level(db, tex_db, lev, config.hacks, config.rip_levels);
}