mirror of
https://github.com/open-goal/jak-project
synced 2026-09-06 19:21:00 -04:00
[decomp] add mips2c converter (#842)
* mips 2 c basic version, not yet tested * calling works without crashing, but the function doesn't * it works * add test * cleanup and actually add the test * dont use mips2c by default for font * clean up formatting
This commit is contained in:
@@ -176,6 +176,8 @@ Config read_config_file(const std::string& path_to_config_file) {
|
||||
config.hacks.format_ops_with_dynamic_string_by_func_name =
|
||||
hacks_json.at("dynamic_format_arg_counts")
|
||||
.get<std::unordered_map<std::string, std::vector<std::vector<int>>>>();
|
||||
config.hacks.mips2c_functions_by_name =
|
||||
hacks_json.at("mips2c_functions_by_name").get<std::unordered_set<std::string>>();
|
||||
|
||||
for (auto& entry : hacks_json.at("cond_with_else_max_lengths")) {
|
||||
auto func_name = entry.at(0).get<std::string>();
|
||||
|
||||
Reference in New Issue
Block a user