Difference between revisions of "PMApp:GetTitleExheaderFlags"

From 3dbrew
Jump to navigation Jump to search
(Created page with "=Request= {| class="wikitable" border="1" |- ! Index Word ! Description |- | 0 | Header code [0x0008....] |- | 1 | TitleID lower word |- | 2 | TitleID upper word |- | 3 | Unkno...")
 
 
(8 intermediate revisions by 2 users not shown)
Line 6: Line 6:
 
|-
 
|-
 
| 0
 
| 0
| Header code [0x0008....]
+
| Header code [0x00080100]
 
|-
 
|-
| 1
+
| 1-4
| TitleID lower word
+
| [[Filesystem_services#ProgramInfo|Program Info]]
|-
 
| 2
 
| TitleID upper word
 
|-
 
| 3
 
| Unknown
 
|-
 
| 4
 
| Unknown
 
 
|}
 
|}
  
Line 33: Line 24:
 
| Result code
 
| Result code
 
|-
 
|-
| 2
+
| 2-3
| ProgramID lower word
+
| [[NCCH/Extended_Header#ARM11_Local_System_Capabilities|ARM11 Local System Capabilities]] bytes 0x8-0xF
 
|-
 
|-
| 2
+
| 4-5
| ProgramID upper word
+
| [[NCCH/Extended_Header#System_Control_Info|System Control Info]] bytes 0x8-0xF
 
|}
 
|}
  
 
=Description=
 
=Description=
This loads the programID for the specified title from the [[NCCH#CXI|CXI]] exheader.
+
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.