AAMP: Difference between revisions

imported>Leoetlino
mNo edit summary
imported>Leoetlino
Line 3: Line 3:
</onlyinclude>
</onlyinclude>
== Structure ==
== Structure ==
{{expand section}}
AAMP is a (typically) little endian format.


Unlike some other file formats, AAMP files have the exact same structure and endianness on Wii U and Switch, so these files are interchangeable between the consoles.
Unlike some other file formats, AAMP files have the exact same structure and endianness on Wii U and Switch, so these files are interchangeable between the consoles.
=== Header ===
{| class="wikitable"
! Offset !! Type !! Description
|-
| 0x0 || char[4] || Magic ("AAMP")
|-
| 0x4 || u32 || Version (2)
|-
| 0x8 || u32 || Flags (LittleEndian: 1 << 0, UTF8: 1 << 1)
|-
| 0xc || u32 || File size
|-
| 0x10 || u32 || Padding
|-
| 0x14 || u32 || Offset to root parameter IO (multiple of 4)
|-
| 0x18 || u32 || Number of lists (including root parameter IO)
|-
| 0x1c || u32 || Number of objects
|-
| 0x20 || u32 || Number of parameters
|-
| 0x24 || u32 || Data section size
|-
| 0x28 || u32 || String section size
|-
| 0x2c || u32 || Unknown: number of uint32s after the string section
|-
| 0x30 || char[] || Parameter IO type (typically <code>xml</code>)
|}
=== Parameter list ===
{{empty section}}
=== Parameter object ===
{{empty section}}
=== Parameter ===
{{empty section}}


=== Parameter types ===
=== Parameter types ===
Anonymous user