mirror of
https://github.com/open-goal/jak-project
synced 2026-08-04 09:09:52 -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:
@@ -41,11 +41,11 @@ OfflineTestDecompiler setup_decompiler(const OfflineTestWorkGroup& work,
|
||||
for (auto& file : work.work_collection.source_files) {
|
||||
object_files.insert(file.name_in_dgo); // todo, make this work with unique_name
|
||||
}
|
||||
auto art_group_info = find_art_files(offline_config.game_name);
|
||||
|
||||
dc.config->allowed_objects = object_files;
|
||||
// don't try to do this because we can't write the file
|
||||
dc.config->generate_symbol_definition_map = false;
|
||||
dc.config->process_art_groups = false; // not needed, art groups are stored in a json file
|
||||
|
||||
std::vector<fs::path> dgo_paths;
|
||||
for (auto& x : offline_config.dgos) {
|
||||
@@ -55,7 +55,7 @@ OfflineTestDecompiler setup_decompiler(const OfflineTestWorkGroup& work,
|
||||
dc.db = std::make_unique<decompiler::ObjectFileDB>(dgo_paths, dc.config->obj_file_name_map_file,
|
||||
std::vector<fs::path>{},
|
||||
std::vector<fs::path>{}, *dc.config);
|
||||
dc.db->dts.art_group_info = art_group_info;
|
||||
dc.db->dts.art_group_info = dc.config->art_group_info_dump;
|
||||
|
||||
std::unordered_set<std::string> db_files;
|
||||
for (auto& files_by_name : dc.db->obj_files_by_name) {
|
||||
|
||||
Reference in New Issue
Block a user