Difference between revisions of "GFAC"
Jump to navigation
Jump to search
Meleemeister (talk | contribs) (Created page with "'''GFAC''' files are archive files. ==File Format== ===Header=== {| class="wikitable" border="1" ! Offset !! Size !! Type !! Description |- | 0x000 || 4 || char[4] || Mag...") |
Meleemeister (talk | contribs) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 6: | Line 6: | ||
! Offset !! Size !! Type !! Description | ! Offset !! Size !! Type !! Description | ||
|- | |- | ||
− | | | + | | 0x00 || 4 || char[4] || Magic Word 'GFAC' |
|- | |- | ||
− | | | + | | 0x04 || 4 || uint32 || Version? |
|- | |- | ||
− | | | + | | 0x08 || 4 || uint32 || Always 1 |
|- | |- | ||
− | | | + | | 0x0C || 4 || uint32 || Absolut offset of file table |
|- | |- | ||
− | | | + | | 0x10 || 4 || uint32 || Size of file table |
|- | |- | ||
− | | | + | | 0x14 || 4 || uint32 || Absolut offset of file data |
|- | |- | ||
− | | | + | | 0x18 || 4 || uint32 || Size of file data |
|- | |- | ||
− | | | + | | 0x1C || 16 || || Padding/Unknown |
|} | |} | ||
+ | |||
+ | ===File Table=== | ||
+ | {| class="wikitable" border="1" | ||
+ | ! Offset !! Size !! Type !! Description | ||
+ | |- | ||
+ | | 0x00 || 4 || uint32 || Entry count / Number of files | ||
+ | |- | ||
+ | |colspan=4 style="text-align:center;font-weight:bold"| Entry | ||
+ | |- | ||
+ | | || 4 || uint32 || CRC-32 ? | ||
+ | |- | ||
+ | | || 4 || uint32 || Absolut offset of file name; Last offset has MSB set to 1 | ||
+ | |- | ||
+ | | || 4 || uint32 || file size | ||
+ | |- | ||
+ | | || 4 || uint32 || file offset | ||
+ | |} | ||
+ | |||
+ | The file offset refers to the raw file data. If a container like [[GFCP]] is used the data has to be decompressed and must replace the whole container. |
Latest revision as of 19:34, 27 September 2021
GFAC files are archive files.
File Format[edit]
Header[edit]
Offset | Size | Type | Description |
---|---|---|---|
0x00 | 4 | char[4] | Magic Word 'GFAC' |
0x04 | 4 | uint32 | Version? |
0x08 | 4 | uint32 | Always 1 |
0x0C | 4 | uint32 | Absolut offset of file table |
0x10 | 4 | uint32 | Size of file table |
0x14 | 4 | uint32 | Absolut offset of file data |
0x18 | 4 | uint32 | Size of file data |
0x1C | 16 | Padding/Unknown |
File Table[edit]
Offset | Size | Type | Description |
---|---|---|---|
0x00 | 4 | uint32 | Entry count / Number of files |
Entry | |||
4 | uint32 | CRC-32 ? | |
4 | uint32 | Absolut offset of file name; Last offset has MSB set to 1 | |
4 | uint32 | file size | |
4 | uint32 | file offset |
The file offset refers to the raw file data. If a container like GFCP is used the data has to be decompressed and must replace the whole container.