Loader services

From Nintendo Switch Brew
Revision as of 09:11, 22 April 2019 by Adubbz (talk | contribs) (Removed ro info as it is now on its own page.)
Jump to navigation Jump to search


This is "nn::ldr::detail::IDebugMonitorInterface".

Cmd Name
0 AddProcessToDebugLaunchQueue
1 ClearDebugLaunchQueue
2 GetNsoInfos


Same as AddProcessToLaunchQueue but for processes marked as debug.


Same as ClearLaunchQueue.


Takes in a u64 ProcessID, and a C descriptor. Returns the number of NsoInfos copied to output.

NsoInfo has the following layout:

Offset Size Description
0x0 0x20 "Build ID", from NSO header+0x40.
0x20 0x8 Mapped address for this NSO
0x28 0x8 Mapped size for this NSO


This is "nn::ldr::detail::IProcessManagerInterface".

Cmd Name
0 CreateProcess
1 #GetProgramInfo
2 #RegisterTitle
3 #UnregisterTitle


Takes a TitleId + StorageId, parses the NPDM, and writes output to a C descriptor buffer as follows:

Offset Size Description
0x0 0x1 MainThreadPrio. Arg1 to svcStartProcess
0x1 0x1 DefaultCpuId. Arg2 to svcStartProcess
0x2 0x1 ApplicationType, see here.
0x3 0x1 Padding
0x4 0x4 MainThreadStackSize. Arg3 to svcStartProcess
0x8 0x8 TitleIdRange_Min
0x10 0x4 ACID Service Access Control list size
0x14 0x4 ACI0 Service Access Control list size
0x18 0x4 ACID FS Access Control buffer size
0x1C 0x4 ACI0 FS Access Control buffer size
0x20 <Varies> ACID Service Access Control list
<Varies> <Varies> ACI0 Service Access Control list
<Varies> <Varies> ACID FS Access Control buffer
<Varies> <Varies> ACI0 FS Access Control


Takes a TitleId + StorageId, returns an index.


Takes the index from #RegisterTitle.


This is "nn::ldr::detail::IShellInterface".

Cmd Name
0 #AddProcessToLaunchQueue
1 #ClearLaunchQueue


Takes a type-0x19 input buffer with launch arguments (as string), an u32 (size of arguments string), and an input title-id.

Loads a process for the specified title-id and passes along the supplied arguments. Loaded processes are kept in a queue waiting for PM to launch them. The maximum number of waiting processes in this list is 10.


Clears the loaded processes waiting queue.