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:
Matt Dallmeyer
2024-01-29 13:15:42 -08:00
committed by GitHub
parent ba8d4c2903
commit 1979f94e45
12 changed files with 55 additions and 49 deletions
+4
View File
@@ -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");