mirror of
https://github.com/open-goal/jak-project
synced 2026-09-07 03:30:01 -04:00
docs - first chunk of work documenting the files I glossed over (#2130)
- started documenting the files I glossed over, some are totally done, others are just partially done - I changed the decompiler to automatically initialize the art-group-info from the json file. This makes updating gsrc, even a single file at a time, have consistent naming - Though I disabled this functionality for jak 1, as I have no idea if using the ntsc art groups will cause a regression for different versions - fix indentation for docstrings -- it still doesn't look great, but this is now a formatting concern, rather than the docstring having a bunch of happen-stance leading whitespace.
This commit is contained in:
@@ -52,6 +52,14 @@ Config read_config_file(const fs::path& path_to_config_file, const std::string&
|
||||
config.streamed_audio_file_names =
|
||||
inputs_json.at("streamed_audio_file_names").get<std::vector<std::string>>();
|
||||
|
||||
if (cfg.contains("art_group_dump_file")) {
|
||||
auto json_data = file_util::read_text_file(
|
||||
file_util::get_file_path({cfg.at("art_group_dump_file").get<std::string>()}));
|
||||
std::unordered_map<std::string, std::unordered_map<int, std::string>> serialized =
|
||||
parse_commented_json(json_data, "art_group_dump_file");
|
||||
config.art_group_info_dump = serialized;
|
||||
}
|
||||
|
||||
if (cfg.contains("obj_file_name_map_file")) {
|
||||
config.obj_file_name_map_file = cfg.at("obj_file_name_map_file").get<std::string>();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user