From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Format:RARC archive" |
|---|
| claim | "At offset header_length (0x20) a RARC has a 0x20-byte info block: directory count, directory table offset, file entry count, file entry table offset, string table length and offset (offsets relative to the info block), a u16 next free file id and a byte telling whether file ids equal entry indexes." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:RARC archive" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "SArcDataInfo" |
|---|
| size | 32 |
|---|
| fields | | offset | 0 |
|---|
| size | 4 |
|---|
| type | "u32" |
|---|
| name | "num_nodes" |
|---|
| notes | "directories" |
|---|
|
| offset | 4 |
|---|
| size | 4 |
|---|
| type | "u32" |
|---|
| name | "node_offset" |
|---|
|
| offset | 8 |
|---|
| size | 4 |
|---|
| type | "u32" |
|---|
| name | "num_file_entries" |
|---|
|
| offset | 12 |
|---|
| size | 4 |
|---|
| type | "u32" |
|---|
| name | "file_entry_offset" |
|---|
|
| offset | 16 |
|---|
| size | 4 |
|---|
| type | "u32" |
|---|
| name | "string_table_length" |
|---|
|
| offset | 20 |
|---|
| size | 4 |
|---|
| type | "u32" |
|---|
| name | "string_table_offset" |
|---|
|
| offset | 24 |
|---|
| size | 2 |
|---|
| type | "u16" |
|---|
| name | "next_free_file_id" |
|---|
|
| offset | 26 |
|---|
| size | 1 |
|---|
| type | "u8" |
|---|
| name | "sync_file_ids_and_indices" |
|---|
|
| offset | 27 |
|---|
| size | 5 |
|---|
| type | "u8[5]" |
|---|
| name | "padding" |
|---|
|
|
|---|
| endianness | "big" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "struct SArcDataInfo" |
|---|
| repo | "https://github.com/zeldaret/tww" |
|---|
| commit | "8b93b372dc8e841f12ddfb7e0215626f62b05417" |
|---|
| path | "include/JSystem/JKernel/JKRArchive.h" |
|---|
| lines | "21-31" |
|---|
|
| type | "source" |
|---|
| detail | "mNodes, mFiles and mStringTable = &mArcInfoBlock->num_nodes + the respective offset" |
|---|
| repo | "https://github.com/zeldaret/tww" |
|---|
| commit | "8b93b372dc8e841f12ddfb7e0215626f62b05417" |
|---|
| path | "src/JSystem/JKernel/JKRMemArchive.cpp" |
|---|
| lines | "117-120" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "RARC info block" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-17T18:22:22.552Z" |
|---|
| verifications | |
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-19T16:38:41.536Z" |
|---|
| summary | "Byte order missing: big-endian like the rest of the RARC (read_big_endian_u32/u16 in JKRArchive.h; decomp-toolkit big_endian types)." |
|---|
| changed | |
|---|
|
|
|---|