Difference between revisions of "GFAC"

From 3dbrew
Jump to navigation Jump to search
(Created page with "'''GFAC''' files are archive files. ==File Format== ===Header=== {| class="wikitable" border="1" ! Offset !! Size !! Type !! Description |- | 0x000 || 4 || char[4] || Mag...")
 
Line 6: Line 6:
 
!  Offset !!  Size !! Type !!  Description
 
!  Offset !!  Size !! Type !!  Description
 
|-
 
|-
| 0x000 || 4 || char[4] || Magic Word 'GFAC'
+
| 0x00 || 4 || char[4] || Magic Word 'GFAC'
 
|-
 
|-
| 0x004 || 4 || uint32 || Version?
+
| 0x04 || 4 || uint32 || Version?
 
|-
 
|-
| 0x008 || 4 || uint32 || Always 1
+
| 0x08 || 4 || uint32 || Always 1
 
|-
 
|-
| 0x00C || 4 || uint32 || Absolut offset of file table
+
| 0x0C || 4 || uint32 || Absolut offset of file table
 
|-
 
|-
| 0x010 || 4 || uint32 || Size of file table
+
| 0x10 || 4 || uint32 || Size of file table
 
|-
 
|-
| 0x014 || 4 || uint32 || Absolut offset of file data
+
| 0x14 || 4 || uint32 || Absolut offset of file data
 
|-
 
|-
| 0x018 || 4 || uint32 || Size of file data
+
| 0x18 || 4 || uint32 || Size of file data
 
|-
 
|-
| 0x01C || 16 || || Padding/Unknown
+
| 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
 +
|-
 +
|  || 4 || uint32 || file size
 +
|-
 +
|  || 4 || uint32 || file offset
 
|}
 
|}

Revision as of 19:06, 17 September 2021

GFAC files are archive files.

File Format

Header

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

Offset Size Type Description
0x00 4 uint32 Entry count / Number of files
Entry
4 uint32 CRC-32 ?
4 uint32 Absolut offset of file name
4 uint32 file size
4 uint32 file offset