SCHG:Sonic & Sega All-Stars Racing/Formats/XPAC
From Sonic Retro
Revision as of 08:11, 26 May 2019 by Ccawley2011 (talk | contribs) (Created page with "==Format== .xpac files start with the following header: {| class="prettytable" !Offset||Type||Description |- | 0 | Int | Always zero. |- | 4 | Int | Always zero. |- | 8 | Poin...")
Revision as of 08:11, 26 May 2019 by Ccawley2011 (talk | contribs) (Created page with "==Format== .xpac files start with the following header: {| class="prettytable" !Offset||Type||Description |- | 0 | Int | Always zero. |- | 4 | Int | Always zero. |- | 8 | Poin...")
Format
.xpac files start with the following header:
Offset | Type | Description |
---|---|---|
0 | Int | Always zero. |
4 | Int | Always zero. |
8 | Pointer | Pointer to the start of the first file. |
12 | Int | The number of files contained in the archive |
16 | Int | Always zero. |
20 | Int | Always zero. |
Following that is an array of the following struct:
Offset | Type | Description |
---|---|---|
0 | Int | A unique hash identifying the file. |
4 | Pointer | Pointer to the contents of the file. |
8 | Int | Length of the file's contents. |
12 | Int | Length of the file's contents. Always identical to the previous value. |
16 | Int | Always zero. |