From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "enum" |
|---|
| subject | "Format:PSF (PARAM.SFO)" |
|---|
| claim | "The format word of an SFO index entry is 0x0004 (UTF-8 special, raw bytes, length from param_len), 0x0204 (regular UTF-8 string, NUL terminated; PPSSPP reads it capped at param_max_len and notes in a TODO that param_len probably should be used) or 0x0404 (u32, little-endian); Vita3K also names 0x0402 as ASCII." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:PSF (PARAM.SFO)" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "SfoDataFormat" |
|---|
| underlying_type | "u16" |
|---|
| complete | false |
|---|
| values | | 0x0004 | "UTF8_SPECIAL" |
|---|
| 0x0204 | "UTF8" |
|---|
| 0x0404 | "INT32" |
|---|
| 0x0402 | "ASCII" |
|---|
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "read switch on 0x0404, 0x0004, 0x0204 and the writer setting the same values" |
|---|
| repo | "hrydgard/ppsspp" |
|---|
| commit | "0c6aa15f9be365bb88265636881814914ee8ac58" |
|---|
| path | "Core/ELF/ParamSFO.cpp" |
|---|
| lines | "190-215, 339-361" |
|---|
|
| type | "source" |
|---|
| detail | "enum SfoDataFormat adds ASCII = 0x0402" |
|---|
| repo | "Vita3K/Vita3K" |
|---|
| commit | "7059dc2a40f1e416ce5403de31db209c75018f99" |
|---|
| path | "vita3k/packages/include/packages/sfo.h" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "SFO value formats" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T02:26:28.612Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T11:30:13.643Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read ParamSFO.cpp at 0c6aa15f: read switch cases 0x0404, 0x0004, 0x0204 (line 213 TODO about param_len) and writer values at lines 339/349/361; Vita3K sfo.h at 7059dc2a defines ASCII = 0x0402. The names are the fact's own (Vita3K calls 0x0004 UTF8, 0x0204 UTF8_NULL)." |
|---|
|
|
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-19T08:15:49.739Z" |
|---|
| summary | "Cited PPSSPP lines do not show 'param_len counts the terminator' for 0x0204: ParamSFO.cpp reads the 0x0204 string capped at param_max_len and carries a TODO that param_len likely should be used…" |
|---|
| changed | |
|---|
|
|
|---|