Changes

1,098 bytes added ,  12:26, 26 March 2023
Add home menu jump parameters.
Line 1,690: Line 1,690:     
Home Menu *only* accesses this file with the Home Menu layout-settings menu / when entering that menu.
 
Home Menu *only* accesses this file with the Home Menu layout-settings menu / when entering that menu.
 +
 +
== Home Menu Jump Parameters ==
 +
 +
Parameters can be provided to [[APT:JumpToHomeMenu]] to perform certain actions when jumping to the home menu.
 +
 +
=== Command Header ===
 +
{| class="wikitable" border="1"
 +
|-
 +
!  Offset
 +
!  Size
 +
!  Description
 +
|-
 +
| 0x0
 +
| 0x4
 +
| Magic Value "ASHP"
 +
|-
 +
| 0x4
 +
| 0x1
 +
| Command ID
 +
|}
 +
 +
If the command requires extra arguments, this header will be padded and the arguments will start at offset 0x8. Otherwise it is just 0x5 bytes large as presented here.
 +
 +
=== Command IDs ===
 +
{| class="wikitable" border="1"
 +
|-
 +
!  ID
 +
!  Description
 +
!  Extra Arguments
 +
|-
 +
| 0x0
 +
| Does Nothing
 +
| None
 +
|-
 +
| 0x1
 +
| Open Instruction Manual
 +
| None
 +
|-
 +
| 0x2
 +
| Download Theme from Theme Shop
 +
| 4-byte ID of the theme (total command size 0xC bytes). This is divided by 1000000 to determine the [[Titles#Title_IDs|title ID variation]], and the remainder corresponds to the theme's DLC content index. If the value is 0 the theme shop will not open correctly, and if the ID isn't valid the theme shop will just return to the home screen after initializing the DLC title.
 +
|-
 +
| 0x3
 +
| Open Badge Picker
 +
| None
 +
|}
    
== Home Menu startup ==
 
== Home Menu startup ==
1,434

edits