The functions of the Switch's SDK (nn::) and C library that ScarletNX runs natively in a game's place, hooked by their symbols (tools/hookgen's declarations: src/nx/hle/hook/hooks.hook, whose families are to move to src/nx/nn, and src/nx/nn/*.hook), and the kernel's SVCs. 839 hooks in 30 families. A C++ function is shown demangled; its symbol, its arguments as the handler takes them and the handler are under it.
The kernel's SVCs (124): a table by number, each with its registers in both ABIs and its handler.
| Family | File | Hooks |
|---|---|---|
| nn_audio_out | src/nx/nn/audio.hook | 24 |
| nn_audio_device | src/nx/nn/audio.hook | 17 |
| nn_audio_in | src/nx/nn/audio.hook | 4 |
| nn_audio_applet | src/nx/nn/audio.hook | 45 |
| nn_audio_renderer | src/nx/nn/audio_renderer.hook | 56 |
| nn_codec_hwopus | src/nx/nn/codec.hook | 40 |
| nn_fs | src/nx/nn/fs.hook | 118 |
| libc | src/nx/nn/hooks.hook | 3 |
| libc_str | src/nx/nn/hooks.hook | 72 |
| libc_wide | src/nx/nn/hooks.hook | 35 |
| libc_fmt | src/nx/nn/hooks.hook | 11 |
| alloc | src/nx/nn/hooks.hook | 47 |
| sync | src/nx/nn/hooks.hook | 3 |
| cond_var | src/nx/nn/hooks.hook | 21 |
| os_sync | src/nx/nn/hooks.hook | 32 |
| os_light | src/nx/nn/hooks.hook | 13 |
| os_core | src/nx/nn/hooks.hook | 2 |
| diag | src/nx/nn/hooks.hook | 1 |
| gs | src/nx/nn/hooks.hook | 1 |
| codec | src/nx/nn/hooks.hook | 13 |
| audio_stream | src/nx/nn/hooks.hook | 33 |
| string | src/nx/nn/hooks.hook | 58 |
| nn_ngc | src/nx/nn/ngc.hook | 10 |
| nn_nsd | src/nx/nn/nsd.hook | 4 |
| nn_pctl | src/nx/nn/pctl.hook | 21 |
| nn_pl | src/nx/nn/pl.hook | 11 |
| nn_prepo | src/nx/nn/prepo.hook | 14 |
| nn_ro | src/nx/nn/ro.hook | 16 |
| nn_time | src/nx/nn/time.hook | 63 |
| tvmr_jpeg | src/nx/nn/tvmr_jpeg.hook | 51 |
What the runtime calls through their dispatch slots, with C of its own around them:
nn::init::Start(unsigned long, unsigned long, void (*)(), void (*)(), void (*)())nn::init::Start(unsigned long, unsigned long, void (*)(), void (*)())eglGetProcAddressThe ARM ISA, the Maxwell ISA, the Ampere ISA, the PICA200 ISA, the USSE ISA, the NVN API, the 3DS IPC, the Android API and the Driver bugs.
Made from ScarletNX's Sail at 166ad3910f80. The hooks' and the SVCs' declarations and their handlers are ScarletNX's (GPL-3.0-or-later); the SVCs' declarations are Eden's, as hos.svc says.