APT:GetProgramInfo: Difference between revisions
m →Request |
Steveice10 (talk | contribs) |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 9: | Line 9: | ||
|- | |- | ||
| 1-4 | | 1-4 | ||
| | | [[Filesystem_services#ProgramInfo|Program Info]] | ||
|} | |} | ||
Line 25: | Line 25: | ||
|- | |- | ||
| 2 | | 2 | ||
| u8 | | u8, [[NCCH/Extended_Header#Flag0|System Mode]] | ||
|- | |- | ||
| 3 | | 3 | ||
| | | FIRM Program ID Low | ||
|} | |} | ||
=Description= | =Description= | ||
This obtains info mainly used for [[APT:Reboot|launching]] [[FIRM]]. For TWL titles, the output | This obtains info mainly used for [[APT:Reboot|launching]] [[FIRM]]. For TWL titles, the output Program ID 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]]. |