From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Format:Source 2 compiled resource ( c)" |
|---|
| claim | "A Source 2 _c file starts with FileSize u32, HeaderVersion u16 (12), Version u16, BlockOffset u32, BlockCount u32; each block entry is type FourCC, offset relative to the offset field, size." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:Source 2 compiled resource (_c)" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "ResourceHeader" |
|---|
| size | 16 |
|---|
| fields | | name | "file_size" |
|---|
| type | "u32" |
|---|
| offset | 0 |
|---|
|
| name | "header_version" |
|---|
| type | "u16" |
|---|
| offset | 4 |
|---|
|
| name | "version" |
|---|
| type | "u16" |
|---|
| offset | 6 |
|---|
|
| name | "block_offset" |
|---|
| type | "u32" |
|---|
| offset | 8 |
|---|
|
| name | "block_count" |
|---|
| type | "u32" |
|---|
| offset | 12 |
|---|
|
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "KnownHeaderVersion = 12 and the read loop over the block table" |
|---|
| repo | "https://github.com/ValveResourceFormat/ValveResourceFormat" |
|---|
| commit | "16a6e739da35664f974ca74d716480fe4a2fcda9" |
|---|
| path | "ValveResourceFormat/Resource/Resource.cs" |
|---|
| lines | "32, 214-256" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "Resource header and block table" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T11:24:47.687Z" |
|---|
| verifications | |
|---|