Difference between revisions of "SCHG:Sonic & Sega All-Stars Racing/Formats/XPAC"
From Sonic Retro
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...") |
Ccawley2011 (talk | contribs) |
||
Line 1: | Line 1: | ||
+ | {{SCHG ASR}} | ||
==Format== | ==Format== | ||
.xpac files start with the following header: | .xpac files start with the following header: |
Revision as of 08:20, 26 May 2019
Sonic Community Hacking Guide Sonic & Sega All-Stars Racing |
---|
Formats |
SSRT |
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. |