Changes

Jump to navigation Jump to search
Line 124: Line 124:  
|-
 
|-
 
! Value || Name
 
! Value || Name
 +
|-
 +
| 1 || LaunchProgram
 +
|-
 +
| 2 || Shutdown
 +
|-
 +
| 3 || Reboot
 +
|-
 +
| 5 ||
 
|-
 
|-
 
|}
 
|}
 +
 +
Unofficial names.
 +
 +
Unrecognized commands are handled by just returning 0.
 +
 +
Shutdown/Reboot were added at some point after LaunchProgram, these are present in [9.1.0] (exact version which added these is unknown). These call the SystemApplet Main() func (also used by qlaunch) with a funcptr to call the relevant [[Applet_Manager_services|am]] IGlobalStateController StartShutdownSequence/StartRebootSequence cmd.
 +
 +
Cmd5 was added at some point after Shutdown/Reboot, this is present in [14.0.0] (exact version which added this is unknown). The command payload data contains a s32 path_size, followed by a NUL-terminated string with that size. After loading the input string, a handler func is called with this string.
    
== Command ==
 
== Command ==

Navigation menu