Some games (notably the Mario Party titles) load NROs at runtime. I'd like to see what possibilities there are to hook into these modules, if any.
Some concerns with these modules:
- They may be loaded (and unloaded) at any point
- There is no way for sail to easily link symbols to these modules
Hooking into the nn::ro::LoadModule method seems to fail(?) Error on my part
Jumps to loaded modules may not fit in a branch instructions, so multiple-op jumps may be necessary, and these might not always fit in small functions.
- Hakkun uses a wrapper around nn::ro::detail::RoModule which may not work for dynamic loads (especially since the amount loaded at once is unknown)
- More in fruity's reply
Rather than a feature request, I'm hoping this issue can be treated as a discussion thread for other problems and possible solutions, in case anyone wants pointers on implementing support and problems they may have to solve.
Some games (notably the Mario Party titles) load NROs at runtime. I'd like to see what possibilities there are to hook into these modules, if any.
Some concerns with these modules:
Hooking into the nn::ro::LoadModule method seems to fail(?)Error on my partJumps to loaded modules may not fit in a branch instructions, so multiple-op jumps may be necessary, and these might not always fit in small functions.Rather than a feature request, I'm hoping this issue can be treated as a discussion thread for other problems and possible solutions, in case anyone wants pointers on implementing support and problems they may have to solve.