nn API

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.

By namespace

SVCs

The kernel's SVCs (124): a table by number, each with its registers in both ABIs and its handler.

Families

FamilyFileHooks
nn_audio_outsrc/nx/nn/audio.hook24
nn_audio_devicesrc/nx/nn/audio.hook17
nn_audio_insrc/nx/nn/audio.hook4
nn_audio_appletsrc/nx/nn/audio.hook45
nn_audio_renderersrc/nx/nn/audio_renderer.hook56
nn_codec_hwopussrc/nx/nn/codec.hook40
nn_fssrc/nx/nn/fs.hook118
libcsrc/nx/nn/hooks.hook3
libc_strsrc/nx/nn/hooks.hook72
libc_widesrc/nx/nn/hooks.hook35
libc_fmtsrc/nx/nn/hooks.hook11
allocsrc/nx/nn/hooks.hook47
syncsrc/nx/nn/hooks.hook3
cond_varsrc/nx/nn/hooks.hook21
os_syncsrc/nx/nn/hooks.hook32
os_lightsrc/nx/nn/hooks.hook13
os_coresrc/nx/nn/hooks.hook2
diagsrc/nx/nn/hooks.hook1
gssrc/nx/nn/hooks.hook1
codecsrc/nx/nn/hooks.hook13
audio_streamsrc/nx/nn/hooks.hook33
stringsrc/nx/nn/hooks.hook58
nn_ngcsrc/nx/nn/ngc.hook10
nn_nsdsrc/nx/nn/nsd.hook4
nn_pctlsrc/nx/nn/pctl.hook21
nn_plsrc/nx/nn/pl.hook11
nn_preposrc/nx/nn/prepo.hook14
nn_rosrc/nx/nn/ro.hook16
nn_timesrc/nx/nn/time.hook63
tvmr_jpegsrc/nx/nn/tvmr_jpeg.hook51

Routes

What the runtime calls through their dispatch slots, with C of its own around them:

The 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.