mirror of
https://github.com/open-goal/jak-project
synced 2026-08-07 02:06:59 -04:00
decompiler: some hacks to allow running decompiler on jak 3 v5 code files, improve all-types generation (#2526)
Co-authored-by: water <awaterford111445@gmail.com>
This commit is contained in:
@@ -25,7 +25,7 @@ nlohmann::json read_json_file_from_config(const nlohmann::json& json, const std:
|
||||
Config make_config_via_json(nlohmann::json& json) {
|
||||
Config config;
|
||||
int version_int = json.at("game_version").get<int>();
|
||||
ASSERT(version_int == 1 || version_int == 2);
|
||||
ASSERT(version_int == 1 || version_int == 2 || version_int == 3);
|
||||
config.game_version = (GameVersion)version_int;
|
||||
config.text_version = json.at("text_version").get<GameTextVersion>();
|
||||
config.game_name = json.at("game_name").get<std::string>();
|
||||
|
||||
Reference in New Issue
Block a user