From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Format:PSF (PARAM.SFO)" |
|---|
| claim | "The SFO header is 20 bytes (magic, version, key table offset, data table offset, count) and each index entry is 16 bytes (key offset u16, alignment u8, type u8, value size, padded size, data offset)." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:PSF (PARAM.SFO)" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "SfoEntry" |
|---|
| size | 16 |
|---|
| fields | | name | "nameofs" |
|---|
| offset | 0 |
|---|
| type | "u16" |
|---|
|
| name | "alignment" |
|---|
| offset | 2 |
|---|
| type | "u8" |
|---|
|
| name | "type" |
|---|
| offset | 3 |
|---|
| type | "u8" |
|---|
| note | "0 binary, 2 string, 4 integer" |
|---|
|
| name | "valsize" |
|---|
| offset | 4 |
|---|
| type | "u32" |
|---|
|
| name | "totalsize" |
|---|
| offset | 8 |
|---|
| type | "u32" |
|---|
|
| name | "dataofs" |
|---|
| offset | 12 |
|---|
| type | "u32" |
|---|
|
|
|---|
| endianness | "little" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "SfoHeader and SfoEntry packed structs and PSF_TYPE_* constants" |
|---|
| repo | "https://github.com/pspdev/pspsdk" |
|---|
| commit | "6ef2b21dc440ef8d4125f000301faaa2a470975e" |
|---|
| path | "tools/mksfoex.c" |
|---|
| lines | "21-42" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "SFO header and entry" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T08:08:11.166Z" |
|---|
| verifications | |
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-19T16:39:50.404Z" |
|---|
| summary | "data.endianness added: little-endian (packed host structs written by mksfoex for the PSP; PSF_MAGIC 0x46535000 is the file bytes 00 'P' 'S' 'F'); only the entry is in the data, the 20-byte header is…" |
|---|
| changed | |
|---|
|
|
|---|