Difference between revisions of "PMApp:GetTitleExheaderFlags"

From 3dbrew
Jump to navigation Jump to search
m (Let's not link to a link.)
 
(2 intermediate revisions by the same user not shown)
Line 9: Line 9:
 
|-
 
|-
 
| 1-4
 
| 1-4
| [[FSReg:LoadProgram#ProgramInfo|ProgramInfo struct]]
+
| [[Filesystem_services#ProgramInfo|Program Info]]
 
|}
 
|}
  
Line 25: Line 25:
 
|-
 
|-
 
| 2-3
 
| 2-3
| Flags
+
| [[NCCH/Extended_Header#ARM11_Local_System_Capabilities|ARM11 Local System Capabilities]] bytes 0x8-0xF
 
|-
 
|-
 
| 4-5
 
| 4-5
| This is the 8-bytes from exheader offset 0x8.
+
| [[NCCH/Extended_Header#System_Control_Info|System Control Info]] bytes 0x8-0xF
 
|}
 
|}
  
 
=Description=
 
=Description=
This returns the 8-bytes from exheader_arm11systemlocalcaps.flags at cmdreply[2-3], for the specified [[NCCH#CXI|CXI]] title. In newer pm-module versions, this also returns additional exheader data at cmdreply[4-5].
+
This outputs the [[NCCH/Extended_Header#ARM11_Local_System_Capabilities|ARM11 Local System Capabilities]] "Core Version", "Flag1 and Flag2", "Flag0", and "Priority" fields. In newer PM-module versions, this also outputs the [[NCCH/Extended_Header#System_Control_Info|System Control Info]] "Reserved", "Flag", and "Remaster Version" fields.
 +
 
 +
This returns result code 0xC8A05801 if [[PMApp:PrepareForReboot]] has been called.

Latest revision as of 01:45, 20 January 2016

Request[edit]

Index Word Description
0 Header code [0x00080100]
1-4 Program Info

Response[edit]

Index Word Description
0 Header code
1 Result code
2-3 ARM11 Local System Capabilities bytes 0x8-0xF
4-5 System Control Info bytes 0x8-0xF

Description[edit]

This outputs the ARM11 Local System Capabilities "Core Version", "Flag1 and Flag2", "Flag0", and "Priority" fields. In newer PM-module versions, this also outputs the System Control Info "Reserved", "Flag", and "Remaster Version" fields.

This returns result code 0xC8A05801 if PMApp:PrepareForReboot has been called.