[jak3] Support jaextern.str, stub for blue fog fix (#3455)

This commit is contained in:
water111
2024-04-07 11:09:56 -04:00
committed by GitHub
parent ae0f139667
commit 0124a0b9a1
15 changed files with 78 additions and 15 deletions
+13
View File
@@ -120,6 +120,7 @@ ObjectFileDB::ObjectFileDB(const std::vector<fs::path>& _dgos,
const std::vector<fs::path>& object_files,
const std::vector<fs::path>& str_files,
const std::vector<fs::path>& str_tex_files,
const std::vector<fs::path>& str_art_files,
const Config& config)
: dts(config.game_version), m_version(config.game_version) {
Timer timer;
@@ -237,6 +238,18 @@ ObjectFileDB::ObjectFileDB(const std::vector<fs::path>& _dgos,
}
}
if (!str_art_files.empty()) {
lg::info("-Loading {} streaming art files...", str_art_files.size());
for (auto& obj : str_art_files) {
StrFileReader reader(obj, version());
for (int i = 0; i < reader.chunk_count(); i++) {
auto name = reader.get_chunk_art_name(i);
add_obj_from_dgo(name, name, reader.get_chunk(i).data(), reader.get_chunk(i).size(),
"ARTSPOOL", config, name);
}
}
}
lg::info("ObjectFileDB Initialized");
if (obj_files_by_name.empty()) {
lg::error(