From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Format:STFS (Xbox 360 package)" |
|---|
| claim | "STFS file table entries are 0x40 bytes, 64 per 0x1000 block; hash table entries are 24 bytes (SHA-1 plus info word), 170 per 0x1000 hash block." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:STFS (Xbox 360 package)" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "STFS_FILE_ENTRY" |
|---|
| size | "0x40" |
|---|
| fields | | offset | "0x0" |
|---|
| size | 40 |
|---|
| type | "char[40]" |
|---|
| name | "name" |
|---|
|
| offset | "0x28" |
|---|
| size | 1 |
|---|
| type | "uint8_t" |
|---|
| name | "flags" |
|---|
| bits | | bit | "0-5" |
|---|
| name | "name_length" |
|---|
|
|
|
|
|---|
|
| offset | "0x29" |
|---|
| size | 3 |
|---|
| type | "uint24_le" |
|---|
| name | "valid_data_blocks" |
|---|
|
| offset | "0x2C" |
|---|
| size | 3 |
|---|
| type | "uint24_le" |
|---|
| name | "allocated_data_blocks" |
|---|
|
| offset | "0x2F" |
|---|
| size | 3 |
|---|
| type | "uint24_le" |
|---|
| name | "start_block_number" |
|---|
|
| offset | "0x32" |
|---|
| size | 2 |
|---|
| type | "uint16_be" |
|---|
| name | "directory_index" |
|---|
| notes | "parent entry; 0xFFFF root" |
|---|
|
| offset | "0x34" |
|---|
| size | 4 |
|---|
| type | "uint32_be" |
|---|
| name | "length" |
|---|
|
| offset | "0x38" |
|---|
| size | 2 |
|---|
| type | "uint16_be" |
|---|
| name | "create_date" |
|---|
| notes | "FAT date" |
|---|
|
| offset | "0x3A" |
|---|
| size | 2 |
|---|
| type | "uint16_be" |
|---|
| name | "create_time" |
|---|
| notes | "FAT time" |
|---|
|
| offset | "0x3C" |
|---|
| size | 2 |
|---|
| type | "uint16_be" |
|---|
| name | "modified_date" |
|---|
|
| offset | "0x3E" |
|---|
| size | 2 |
|---|
| type | "uint16_be" |
|---|
| name | "modified_time" |
|---|
|
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "StfsHashEntry (0x18), StfsHashTable (0x1000), StfsDirectoryEntry (0x40), StfsDirectoryBlock" |
|---|
| repo | "https://github.com/xenia-project/xenia" |
|---|
| commit | "95a5c3ee250f80c3b9d139658649d9ffb6db3eec" |
|---|
| path | "src/xenia/vfs/devices/stfs_xbox.h" |
|---|
| lines | "117-185" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "File table entry" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T13:46:30.621Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T07:39:42.722Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read StfsDirectoryEntry (stfs_xbox.h 168-211, static_assert 0x40), StfsDirectoryBlock 0x40 entries = 0x1000, StfsHashEntry 0x18 (sha1[0x14] + be u32 info) and StfsHashTable 170 entries + be u32 + 12 padding = 0x1000: name[40], flags (name_length 6 bits, contiguous bit 6, directory bit 7), 3-byte LE counts and start block, be u16 directory_index, be u32 length, four be u16 FAT date/time fields; offsets recomputed to 0x28/0x29/0x2C/0x2F/0x32/0x34/0x38." |
|---|
|
|
|---|