From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "behavior" |
|---|
| subject | "Format:STFS (Xbox 360 package)" |
|---|
| claim | "In SVOD data files xenia places 0x800-byte blocks with a 0x1000 level 0 hash table before every 0x198 blocks and a level 1 table per 0xA1C4 level 0 tables (the formula reserves 0x2000 bytes at the start of each file for the first level 1 and level 0 tables; their order inside is not read), and splits the image into fragments of 0xA290000 bytes (0x14388 blocks)." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:STFS (Xbox 360 package)" |
|---|
| observed_in | |
|---|
|
|---|
| data | | function | "StfsContainerDevice::BlockToOffsetSVOD" |
|---|
| effect | "true_block = block - 2*start_data_block (+2 for the enhanced GDF layout); file_index = true_block / 0x14388; file_block = true_block % 0x14388; offset = (file_block/0x198 + 1)*0x1000 + ((that count)/0xA1C4 + 1)*0x1000 (+ base offset 0xB000 for the single-file layout); address = file_block*0x800 + offset; if address >= 0xA290000 then file_index+1 and address = (address % 0xA290000) + 0x2000." |
|---|
| condition | "volume_type 1. Constants in the source comment: a level 0 table holds 0xCC hashes each covering two blocks, a level 1 table 0xCB hashes. Not read: hash verification (none seen) and any use of the data file size other than the rounding rule." |
|---|
| notes | "The wrap rule adds 0x2000 for the two hash tables that start the next fragment." |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "BlockToOffsetSVOD with its explanatory comment and constants" |
|---|
| repo | "https://github.com/xenia-project/xenia" |
|---|
| commit | "95a5c3ee250f80c3b9d139658649d9ffb6db3eec" |
|---|
| path | "src/xenia/vfs/devices/stfs_container_device.cc" |
|---|
| lines | "460-519" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "SVOD block to file offset" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T13:27:24.365Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T16:36:09.569Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read BlockToOffsetSVOD whole (lines 460-519) at xenia 95a5c3ee: constants 0x198, 0xA1C4, 0x14388, 0xA290000, EGDF +2, single-file-only base offset, wrap with +0x2000 all match the fact. Source read only, not run on a package." |
|---|
|
|
|---|