From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Format:RARC archive" |
|---|
| claim | "A RARC file entry is 0x14 bytes: u16 file id (0xFFFF for directories), u16 name hash, u32 with the attribute byte in bits 24-31 and the string table offset in bits 0-23, u32 data offset (relative to the file data start; for a directory entry the directory index), u32 size, and a u32 that holds the loaded data pointer at run time (0 in the file). Every directory lists '.' and '..'." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:RARC archive" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "SDIFileEntry" |
|---|
| size | 20 |
|---|
| fields | | offset | 0 |
|---|
| size | 2 |
|---|
| type | "u16" |
|---|
| name | "file_id" |
|---|
|
| offset | 2 |
|---|
| size | 2 |
|---|
| type | "u16" |
|---|
| name | "name_hash" |
|---|
|
| offset | 4 |
|---|
| size | 4 |
|---|
| type | "u32" |
|---|
| name | "type_flags_and_name_offset" |
|---|
| bits | | bit | "0-23" |
|---|
| name | "name_offset" |
|---|
|
| bit | "24-31" |
|---|
| name | "attributes" |
|---|
| notes | "see RARC file attributes" |
|---|
|
|
|---|
|
| offset | 8 |
|---|
| size | 4 |
|---|
| type | "u32" |
|---|
| name | "data_offset" |
|---|
|
| offset | 12 |
|---|
| size | 4 |
|---|
| type | "u32" |
|---|
| name | "data_size" |
|---|
|
| offset | 16 |
|---|
| size | 4 |
|---|
| type | "u32" |
|---|
| name | "data" |
|---|
| notes | "run-time pointer" |
|---|
|
|
|---|
| endianness | "big" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "struct SDIFileEntry with getNameOffset() = & 0xFFFFFF, getFlags() = >> 24, void* data" |
|---|
| repo | "https://github.com/zeldaret/tww" |
|---|
| commit | "8b93b372dc8e841f12ddfb7e0215626f62b05417" |
|---|
| path | "include/JSystem/JKernel/JKRArchive.h" |
|---|
| lines | "60-80" |
|---|
|
| type | "runtime_test" |
|---|
| detail | "gcnfmt.py build_rarc/parse_rarc round trip with 20-byte entries (a 16-byte entry writer failed the self-test)" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "RARC file entry" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-17T18:22:22.712Z" |
|---|
| verifications | |
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-19T16:38:41.708Z" |
|---|
| summary | "Byte order missing: big-endian; file attribute bits per JKRArchive.h: 0x01 file, 0x02 directory, 0x04 compressed, 0x80 YAZ0-compressed." |
|---|
| changed | |
|---|
|
|
|---|