Changes

166 bytes added ,  06:24, 17 February 2014
no edit summary
Line 25: Line 25:  
|-
 
|-
 
| 2
 
| 2
| u8 flag: TWL = 0, CTR = (programIDhigh & 0xF00000) >> 20.
+
| u8 flag: TWL = 1, CTR = ((flags[7] & 0xF0) >> 4). ("System mode" from exheader flags)
 
|-
 
|-
 
| 3
 
| 3
Line 32: Line 32:     
=Description=
 
=Description=
This obtains info mainly used for [[APT:Reboot|launching]] [[FIRM]]. For TWL titles, the output programID-low is 0x102 for TWL_FIRM, however for CTR titles this is [[PMApp:GetTitleExheaderFlags|loaded]] from the first 4-bytes of the exheader_arm11systemlocalcaps.flags("Core Version").
+
This obtains info mainly used for [[APT:Reboot|launching]] [[FIRM]]. For TWL titles, the output programID-low is 0x102 for TWL_FIRM, however for CTR titles this is [[PMApp:GetTitleExheaderFlags|loaded]] from the first 4-bytes of the exheader_arm11systemlocalcaps.flags("Core Version"). For non-TWL titles when a certain NS state flag is set, the output flag is the value from config-mem [[Configuration_Memory|APPMEMTYPE]].