Template:MSB Header
From Wexos's Wiki
This is a template of the common header used in for example MSBT, MSBF and MSBP. All of these files are text-related and are used in many Nintendo games. To use this template, use {{MSB Header|Magic}} where Magic is the file magic of the file.
Example: {{MSB Header|MsgStdBn}} will output:
Offset | Type | Description |
---|---|---|
0x00 | Char[8] | File magic. Always MsgStdBn in ASCII. |
0x08 | UInt16 | Byte-order-mark. FE FF for big endian, FF FE for little endian. |
0x0A | UInt16 | Unknown. |
0x0C | Byte | String encoding. UTF8 = 0, UTF16 = 1. |
0x0D | Byte | Possibly a version number. Games on Wii, Nintendo 3DS and Wii U as well as Mario Kart Tour use 3, games on Nintendo Switch and Super Mario Run use 4. |
0x0E | UInt16 | Number of sections. |
0x10 | UInt16 | Unknown. |
0x12 | UInt32 | File size in bytes. |
0x16 | Byte[10] | Unknown. Always 0. |