Difference between revisions of "Template:BRRES sub file header"

From Custom Mario Kart
Jump to navigation Jump to search
(Use Type not Size)
(Offsets are signed)
 
Line 8: Line 8:
 
| 0x08 || UInt32 || Sub file version number. The number of sections ('''N''') is dependent of this version number. See {{#if: {{{1|}}} | »[[BRRES Sub Files (File Format)#Common Format |BRRES Sub Files]]« | next table }} for details.
 
| 0x08 || UInt32 || Sub file version number. The number of sections ('''N''') is dependent of this version number. See {{#if: {{{1|}}} | »[[BRRES Sub Files (File Format)#Common Format |BRRES Sub Files]]« | next table }} for details.
 
|-
 
|-
| 0x0C || UInt32 || Offset to outer BRRES File (negative value).
+
| 0x0C || Int32 || Offset to outer BRRES File.
 
|-
 
|-
| 0x10 || UInt32['''N'''] || '''N''' section offsets. '''N''' is implied in the version number (offset 0x08).
+
| 0x10 || Int32['''N'''] || '''N''' section offsets. '''N''' is implied in the version number (offset 0x08).
 
|-
 
|-
| 0x10+'''N'''*4 || UInt32 || String offset to the name of this sub file. This name equal to the name of the entry name of the [[BRRES Index Group (File Format)|BRRES Index Group]] pointing to this data.
+
| 0x10+'''N'''*4 || Int32 || String offset to the name of this sub file. This name equal to the name of the entry name of the [[BRRES Index Group (File Format)|BRRES Index Group]] pointing to this data.
 
|-
 
|-
 
| 0x14+'''N'''*4 || colspan=2 {{unknown|End of this header}}
 
| 0x14+'''N'''*4 || colspan=2 {{unknown|End of this header}}

Latest revision as of 06:38, 23 May 2023

Usage

{{BRRES sub file header}}
{{BRRES sub file header|MAGIC}}

Examples

Offset Type Description
0x00 String A magic to identify the sub file.
0x04 UInt32 Length of the sub file.
0x08 UInt32 Sub file version number. The number of sections (N) is dependent of this version number. See next table for details.
0x0C Int32 Offset to outer BRRES File.
0x10 Int32[N] N section offsets. N is implied in the version number (offset 0x08).
0x10+N*4 Int32 String offset to the name of this sub file. This name equal to the name of the entry name of the BRRES Index Group pointing to this data.
0x14+N*4 End of this header
Offset Type Description
0x00 String The magic "MAGIC" to identify the sub file. See »BRRES Sub Files« for other magics.
0x04 UInt32 Length of the sub file.
0x08 UInt32 Sub file version number. The number of sections (N) is dependent of this version number. See »BRRES Sub Files« for details.
0x0C Int32 Offset to outer BRRES File.
0x10 Int32[N] N section offsets. N is implied in the version number (offset 0x08).
0x10+N*4 Int32 String offset to the name of this sub file. This name equal to the name of the entry name of the BRRES Index Group pointing to this data.
0x14+N*4 End of this header