From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Format:PFS0 and HFS0" |
|---|
| claim | "A PFS0 starts with a 0x10-byte header (magic 'PFS0' = 0x30534650, file count, string table size, reserved) followed by 0x18-byte file entries and the string table; file data begins after the string table." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:PFS0 and HFS0" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "pfs0_header_t / pfs0_file_entry_t" |
|---|
| size | "0x10" |
|---|
| endianness | "little" |
|---|
| fields | | offset | "0x0" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "magic (0x30534650, 'PFS0')" |
|---|
|
| offset | "0x4" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "num_files" |
|---|
|
| offset | "0x8" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "string_table_size" |
|---|
|
| offset | "0xC" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "reserved" |
|---|
|
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "MAGIC_PFS0, pfs0_header_t (4 x u32) and pfs0_file_entry_t {u64 offset; u64 size; u32 string_table_offset; u32 reserved} (0x18 bytes); entry i at header + 0x10 + i*0x18, string table after the entries, header size = 0x10 + num_files*0x18 + string_table_size. pfs0.c line 50 seeks to header size + entry offset to read file data." |
|---|
| repo | "SciresM/hactool" |
|---|
| commit | "1d64a83450e025622f3468c28fc4164dad2c5ef6" |
|---|
| path | "pfs0.h" |
|---|
| lines | "8-22, 46-57" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "PFS0 header and entry" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T01:17:29.375Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T08:05:30.173Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read pfs0_header_t, pfs0_file_entry_t and the pfs0_get_* helpers in hactool pfs0.h at the cited commit: 0x10 header, 0x18 entries at header + 0x10 + i*0x18, string table after them, header size formula." |
|---|
|
|
|---|