Home Menu: Difference between revisions

No edit summary
Steveice10 (talk | contribs)
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 ==