Home Menu: Difference between revisions
No edit summary |
No edit summary |
||
Line 840: | Line 840: | ||
|- | |- | ||
| MngFile.dat | | MngFile.dat | ||
| | | See below. | ||
| 0x004D1280 | | 0x004D1280 | ||
| 00000003 | | 00000003 | ||
| [[9.6.0-24]] | | [[9.6.0-24]] | ||
|} | |} | ||
=== MngFile.dat === | |||
{| class="wikitable" border="1" | |||
|- | |||
! Offset | |||
! Size | |||
! Description | |||
|- | |||
| 0x0 | |||
| 0x4 | |||
| u32, must be zero. | |||
|- | |||
| 0x4 | |||
| 0x4 | |||
| u32, total number of stored layouts. | |||
|- | |||
| 0x8 | |||
| 0x4 | |||
| ? | |||
|- | |||
| 0xC | |||
| ? | |||
| Start of the layout entries. | |||
|} | |||
Layout entries structure: | |||
{| class="wikitable" border="1" | |||
|- | |||
! Offset | |||
! Size | |||
! Description | |||
|- | |||
| 0x0 | |||
| 0x2558 | |||
| Exact copy of the entire Home Menu [[System_SaveData]] Launcher.dat, this is the actual layout data. | |||
|- | |||
| 0x2558 | |||
| ? | |||
| Layout preview screenshot gfx data, displayed by the Home Menu layout settings menu. | |||
|} | |||
The filesize must match 0x004D1280, otherwise the Home Menu code returns an error. The saved Home Menu layouts are stored here. | |||
When saving a layout, the total layout field is increased, then a new layout entry is created with the contents of the current Home Menu [[System_SaveData]] Launcher.dat + a screenshot of the main Home Menu screen is written. When loading a layout, the data from the layout entry is copied into the Home Menu [[System_SaveData]] Launcher.dat. | |||
== Home Menu startup == | == Home Menu startup == |