From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "behavior" |
|---|
| subject | "Format:STFS (Xbox 360 package)" |
|---|
| claim | "Xenia accepts a package if the file is at least 0x971A bytes and the first four bytes read as CON , LIVE or PIRS, then chooses the STFS or SVOD reader from the volume_type field; it checks no signature, version or header_size." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:STFS (Xbox 360 package)" |
|---|
| observed_in | |
|---|
|
|---|
| data | | function | "StfsContainerDevice::Initialize, OpenFiles, ReadHeaderAndVerify, ResolveFromFolder" |
|---|
| effect | "1) a directory path is searched breadth-first for the first file whose first 4 bytes (big-endian) equal CON /PIRS/LIVE; 2) file size must be >= sizeof(StfsHeader)=0x971A else kErrorTooSmall; 3) magic must be one of the three else kErrorFileMismatch; 4) data_file_count <= 1 means a single file; otherwise a folder named '<package>.data' must exist, hold exactly data_file_count files (sorted by name) else kErrorFileMismatch; 5) volume_type 0 -> ReadSTFS, 1 -> ReadSVOD, other values fail." |
|---|
| condition | "The source comment says data_file_count is 0 for STFS and 1 for SVOD, yet the code treats <= 1 as single file; SVOD packages with several Data files have the count of fragments. is_read_only() is true for any non-STFS volume or when read_only_format is set." |
|---|
| notes | "Not read: how the title/system update extra header data after XContentMetadata is handled (TODO in stfs_xbox.h 90-91)." |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "Initialize, OpenFiles, ReadHeaderAndVerify, ReadMagic, ResolveFromFolder" |
|---|
| repo | "https://github.com/xenia-project/xenia" |
|---|
| commit | "95a5c3ee250f80c3b9d139658649d9ffb6db3eec" |
|---|
| path | "src/xenia/vfs/devices/stfs_container_device.cc" |
|---|
| lines | "37-139, 162-195, 787-831" |
|---|
|
| type | "source" |
|---|
| detail | "StfsHeader size and TODO comment" |
|---|
| repo | "https://github.com/xenia-project/xenia" |
|---|
| commit | "95a5c3ee250f80c3b9d139658649d9ffb6db3eec" |
|---|
| path | "src/xenia/vfs/devices/stfs_xbox.h" |
|---|
| lines | "87-93" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "Package open checks" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T13:26:30.424Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T16:36:09.264Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read Initialize, OpenFiles, ReadHeaderAndVerify, ResolveFromFolder (lines 37-195, 787-831), is_magic_valid and static_assert_size(StfsHeader, 0x971A) in stfs_xbox.h, is_read_only in stfs_container_device.h:41-44 at xenia 95a5c3ee. All steps and error names match. Minor: the header file handle is not closed on the multi-file path (irrelevant to the claim)." |
|---|
|
|
|---|