mirror of
https://github.com/N64Recomp/N64Recomp.git
synced 2025-05-24 12:24:59 +00:00
Implement nrm filename toml input, renaming list, trace mode, and context dumping flag (#111)
* implement nrm filename toml input * change name of mod toml setting to 'mod_filename' * add renaming and re mode * fix --dump-context arg, fix entrypoint detection * refactor re_mode to function_trace_mode * adjust trace mode to use a general TRACE_ENTRY() macro * fix some renaming and trace mode comments, revert no toml entrypoint code, add TODO to broken block * fix arg2 check and usage string
This commit is contained in:
parent
d33d381617
commit
17438755a1
9 changed files with 95 additions and 12 deletions
|
@ -745,6 +745,12 @@ bool N64Recomp::recompile_function(const N64Recomp::Context& context, const N64R
|
|||
" int c1cs = 0;\n", // cop1 conditional signal
|
||||
func.name);
|
||||
|
||||
if (context.trace_mode) {
|
||||
fmt::print(output_file,
|
||||
" TRACE_ENTRY();",
|
||||
func.name);
|
||||
}
|
||||
|
||||
// Skip analysis and recompilation of this function is stubbed.
|
||||
if (!func.stubbed) {
|
||||
// Use a set to sort and deduplicate labels
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue