From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Format:BRRES resource archive" |
|---|
| claim | "A BRRES starts with 'bres', a u16 byte order mark, u16 version, u32 file size, u16 root section offset and u16 section count; the root section starts with 'root', a u32 size and index groups (u32 size, u32 count, 16-byte entries); sub files begin with MDL0, TEX0, SRT0, CHR0, PAT0, CLR0, SHP0 or SCN0." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:BRRES resource archive" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "brres_header_t" |
|---|
| size | 16 |
|---|
| endianness | "per BOM (big on Wii)" |
|---|
| fields | | offset | "0x00" |
|---|
| name | "magic" |
|---|
| type | "char[4]" |
|---|
| note | "bres" |
|---|
|
| offset | "0x04" |
|---|
| name | "bom" |
|---|
| type | "u16" |
|---|
|
| offset | "0x06" |
|---|
| name | "version" |
|---|
| type | "u16" |
|---|
|
| offset | "0x08" |
|---|
| name | "size" |
|---|
| type | "u32" |
|---|
|
| offset | "0x0C" |
|---|
| name | "root_off" |
|---|
| type | "u16" |
|---|
|
| offset | "0x0E" |
|---|
| name | "n_sections" |
|---|
| type | "u16" |
|---|
|
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "brres_header_t, brres_entry_t, brres_group_t, brres_root_t" |
|---|
| repo | "https://github.com/Wiimm/wiimms-szs-tools" |
|---|
| commit | "246fdb38d7c2fb3054b8f8528e11dc8f17691750" |
|---|
| path | "project/src/lib-szs.h" |
|---|
| lines | "1172-1231" |
|---|
|
| type | "source" |
|---|
| detail | "sub file magics" |
|---|
| repo | "https://github.com/Wiimm/wiimms-szs-tools" |
|---|
| commit | "246fdb38d7c2fb3054b8f8528e11dc8f17691750" |
|---|
| path | "project/src/lib-brres.h" |
|---|
| lines | "133-140" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "brres_header_t" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T00:24:23.818Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T06:21:09.485Z" |
|---|
| result | "confirmed" |
|---|
| method | "Fetched project/src/lib-szs.h at the cited commit; brres_header_t (4+2+2+4+2+2 = 16), brres_entry_t 16 bytes, brres_group_t {size, n_entries, entry[]}, brres_root_t {magic,size}. Version values vary by file kind (0 / 9 / 11 per source comment), which the fact does not state." |
|---|
|
|
|---|