mirror of
https://github.com/open-goal/jak-project
synced 2026-08-21 14:54:53 -04:00
Add PC Port settings to legit start menu (#1217)
* decompiler: support adding new strings to the game_text.txt file * gsrc: expand the pckernel type and functions to work better with the menu * gsrc: add new text-ids * gsrc: add new macros to help with menu code * gsrc: make a new type to generalize their list menu options * gsrc: add new menu options and enums * gsrc: cleanup and refactor the list menu option drawing code this allows us to easily add a new list menu option...well as easy as the rest is atleast (setting up static lists properly, etc) * gsrc: add and cleanup handling of new menu options * scripts: add checks with nice error messages for user facing taskfile recipes * lint: formatting * address simple feedback * gsrc: move modified files to `pc/` folder * gsrc: revert changes to originally decompiled files * gsrc: move modified and new files to `goal_src/pc` folder * gsrc: update paths in `all_files.gc`
This commit is contained in:
@@ -224,6 +224,19 @@ Config read_config_file(const std::string& path_to_config_file,
|
||||
|
||||
config.levels_to_extract = inputs_json.at("levels_to_extract").get<std::vector<std::string>>();
|
||||
config.levels_extract = cfg.at("levels_extract").get<bool>();
|
||||
|
||||
// get new strings
|
||||
if (!cfg.contains("new_strings_file")) {
|
||||
return config;
|
||||
}
|
||||
|
||||
auto new_strings_json = read_json_file_from_config(cfg, "new_strings_file");
|
||||
config.new_strings_same_across_langs = new_strings_json.at("same_across_languages")
|
||||
.get<std::unordered_map<std::string, std::string>>();
|
||||
config.new_strings_different_across_langs =
|
||||
new_strings_json.at("different_across_languages")
|
||||
.get<std::unordered_map<std::string, std::vector<std::string>>>();
|
||||
|
||||
return config;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user