[extractor] fix territory being set to wrong value (#2946)

Also fixes a minor issue where the JP sound bank wouldn't work (Jak 1).

Fixes #2793
This commit is contained in:
ManDude
2023-08-30 18:36:10 +01:00
committed by GitHub
parent f85ed7457d
commit 6e8b0e57c7
16 changed files with 61 additions and 37 deletions
+3 -1
View File
@@ -208,9 +208,11 @@ ExtractorErrorCode compile(const fs::path& iso_data_path, const std::string& dat
}
}
compiler.get_goos().set_global_variable_to_int("*default-territory*", version_info.region);
if (version_info.game_name == "jak1") {
compiler.make_system().set_constant("*jak1-full-game*", !(flags & FLAG_JAK1_BLACK_LABEL));
compiler.make_system().set_constant("*jak1-territory*", version_info.region);
compiler.get_goos().set_global_variable_to_symbol(
"*jak1-full-game*", (flags & FLAG_JAK1_BLACK_LABEL) ? "#t" : "#f");
}
auto project_path = file_util::get_jak_project_dir() / "goal_src" / data_subfolder / "game.gp";