Commit Graph
5 Commits
Author SHA1 Message Date
ApfelTeeSaft c31f5fb656 Add Lua output support for dynamic runtime mod loading
Implements Lua code generation as an alternative to C output, enabling
runtime loading of recompiled N64 functions without recompilation.
2025-10-08 16:25:43 +02:00
ApfelTeeSaft a6406d563d Add TOML function hook definitions
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.
2025-10-07 22:48:08 +02:00
LittleCube 17438755a1 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
2024-12-24 02:10:26 -05:00
David Chavez 8dfed04919 Update headers to use new namespace in N64ModernRuntime (#74) 2024-06-03 21:46:42 +02:00
Mr-Wiseguy 5838e4223a Add license and readme 2024-05-10 17:19:30 -04:00