Changes

m
Line 9: Line 9:  
|-
 
|-
 
| 1-4
 
| 1-4
| 0x10-byte title-info [[FS:GetProgramLaunchInfo|struct]]
+
| [[Filesystem_services#ProgramInfo|Program Info]]
 
|-
 
|-
 
| 5
 
| 5
| u8 flag, usually zero. When zero, NS writes a title-info struct with programID=~0 and mediatype=NAND to the FIRM parameters structure.
+
| u8 (changed to u32 with [[8.0.0-18]]), Flags (usually zero, when zero, NS writes a title-info struct with Program ID = ~0 and [[Filesystem_services#MediaType|MediaType]] = NAND to the [[FIRM]] parameters structure)
 
|}
 
|}
   Line 30: Line 30:  
=Description=
 
=Description=
 
When the input title-info programID is zero, NS will load the actual programID via [[AMNet:GetTitleIDList]]. After doing some checks with the programID, NS will then set a NS state flag to value 1, then set the programID for AppID 0x300(application) to the input programID(or the one from GetTitleIDList). A mediatype field in NS state is also set to the input mediatype value(other state fields are set at this point as well).
 
When the input title-info programID is zero, NS will load the actual programID via [[AMNet:GetTitleIDList]]. After doing some checks with the programID, NS will then set a NS state flag to value 1, then set the programID for AppID 0x300(application) to the input programID(or the one from GetTitleIDList). A mediatype field in NS state is also set to the input mediatype value(other state fields are set at this point as well).
 +
 +
With [[8.0.0-18]], NS will set an u8 NS state field to value 1 when input flags bit8 is set. This is used with the PTMSYSM 0x040A0000 command code in NS, mentioned [[NCCH/Extended_Header|here]]. Note that the value of that NS state field is unreliable: as of the [[Home Menu]] version for system-version [[9.8.0-25]] the Home Menu code still writes to the flags field for this APT:PrepareToStartApplication command with an u8. Hence, the bit8 value that gets sent to NS is whatever was previously stored in the Home Menu thread-local-storage.
1,434

edits