Reproduces ndstool's historical trainer layout by relocating ARM7, appending caller code and a header backup, and patching boot addresses with the historical staged CRC correction. It is isolated because modern builds do not need it. More...
Static Public Member Functions | |
| static NdsLegacyArm7HookResult | Apply (ReadOnlySpan< byte > image, ReadOnlySpan< byte > hook) |
| Applies the compatibility transform to a complete DS-family image without mutating caller memory. | |
Reproduces ndstool's historical trainer layout by relocating ARM7, appending caller code and a header backup, and patching boot addresses with the historical staged CRC correction. It is isolated because modern builds do not need it.
Definition at line 9 of file NdsLegacyArm7Hook.cs.
|
inlinestatic |
Applies the compatibility transform to a complete DS-family image without mutating caller memory.
DSi-enhanced images retain their extended header and DSi-mode programs; the historical hook redirects only the original DS-mode ARM7 boot path, matching ndstool 1.50.3 behavior.
| image | Complete original or previously hooked DS or DSi-enhanced image. |
| hook | Non-empty ARM7 machine code; zero padding extends it to a four-byte boundary. |
Definition at line 19 of file NdsLegacyArm7Hook.cs.