Implements the [[patches.func]] feature that was mentioned as planned
in the README. This allows defining recompiler hooks in the config file
that call specific functions at designated points.
Added FunctionHookDefinition struct supporting two modes:
- before_call: Hook at function entry
- before_vram: Hook at specific instruction address
Hook functions receive rdram and recomp_context parameters for full
access to registers and memory. The implementation reuses the existing
function_hooks map so it integrates cleanly with the current pipeline.
Includes validation for nonexistent functions, invalid addresses, and
misaligned vram values with helpful error messages.
* 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