Changes

Line 277: Line 277:     
== Cmd9 ==
 
== Cmd9 ==
Takes an input u8 [[#AppletEventType]], an u8 [[Applet_Manager_services#AppletId|AppletId]], an u8 [[Filesystem_services#StorageId|StorageId]], an 0x20-byte struct, an u8 bool flag, an u8 [[#PlayLogPolicy]], an u32 '''event_x8''', and an u64 '''titleID'''. Returns no output.
+
Takes an input u8 [[#AppletEventType]], an u8 [[Applet_Manager_services#AppletId|AppletId]], an u8 [[Filesystem_services#StorageId|StorageId]], an 0x20-byte struct, an u8 bool flag, an u8 [[#PlayLogPolicy]], an u32 '''event_x8''', and an u64 '''program_id'''. Returns no output.
   −
[10.0.0+] This now takes an additional 8-bytes of input.
+
[10.0.0+] This now takes an additional input u64, new_program_id. At the very beginning a new func is now called, with params: ({constant value}, &[[#AppletEventType]], &program_id, &new_program_id, &StorageId). Afterwards, where it would originally use program_id, it now uses new_program_id instead.
    
This is identical to [[#NotifyAppletEvent]] except for the additional struct/flag params.
 
This is identical to [[#NotifyAppletEvent]] except for the additional struct/flag params.
    
After the initial logging, additional code runs with some of the above input params. This is handled the same as [[#NotifyAppletEvent]], except that when the u8 bool flag is set the input struct is used with this.
 
After the initial logging, additional code runs with some of the above input params. This is handled the same as [[#NotifyAppletEvent]], except that when the u8 bool flag is set the input struct is used with this.
 +
 +
[10.0.0+] New code at the very end of this func was added. When [[Applet_Manager_services#AppletId|AppletId]] is 0x1, or 0x1F-0x20, the following runs:
 +
* If [[#AppletEventType]] is 1, 5, or 6, func1 is called with param &program_id.
 +
* Otherwise, if [[#AppletEventType]] is 0, func0 is called with param &program_id.
 +
* If [[#AppletEventType]] doesn't match any of these, nothing is done.
    
= pdm:qry =
 
= pdm:qry =