mirror of
https://github.com/open-goal/jak-project
synced 2026-08-22 07:04:29 -04:00
[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:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user