mirror of
https://github.com/open-goal/jak-project
synced 2026-08-08 10:34:30 -04:00
Rip collision based on config flag (#3348)
Added a new `rip_collision` flag to the decompiler config and wired it up. Cleaned up the comments around these fields in the JSON too for clarity Also refactored a bunch of the related extract functions to read from `config` object rather than pass down a bunch of booleans
This commit is contained in:
@@ -314,6 +314,10 @@ Config make_config_via_json(nlohmann::json& json) {
|
||||
config.import_deps_by_file =
|
||||
import_deps.get<std::unordered_map<std::string, std::vector<std::string>>>();
|
||||
|
||||
if (json.contains("rip_collision")) {
|
||||
config.rip_collision = json.at("rip_collision").get<bool>();
|
||||
}
|
||||
|
||||
config.write_patches = json.at("write_patches").get<bool>();
|
||||
config.apply_patches = json.at("apply_patches").get<bool>();
|
||||
const auto& object_patches = json.at("object_patches");
|
||||
|
||||
Reference in New Issue
Block a user