From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Format:PAK (Quake)" |
|---|
| claim | "The PAK header is 12 bytes: 4-byte magic, int32 directory offset, int32 directory length in bytes (entry count = length / 64)." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:PAK (Quake)" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "dpackheader_t" |
|---|
| size | "0xC" |
|---|
| fields | | offset | "0x0" |
|---|
| size | 4 |
|---|
| type | "char[4]" |
|---|
| name | "id" |
|---|
| notes | ""PACK"" |
|---|
|
| offset | "0x4" |
|---|
| size | 4 |
|---|
| type | "int32_t" |
|---|
| name | "dirofs" |
|---|
| notes | "file offset of the directory" |
|---|
|
| offset | "0x8" |
|---|
| size | 4 |
|---|
| type | "int32_t" |
|---|
| name | "dirlen" |
|---|
| notes | "directory size in bytes, a multiple of 64" |
|---|
|
|
|---|
|
|---|
| evidence | | type | "documentation" |
|---|
| detail | "WinQuake/common.c dpackheader_t (commit bf4ac42)." |
|---|
|
| type | "runtime_test" |
|---|
| detail | "LibreQuake v0.09-beta pak0.pak: dirlen 22592 = 353 x 64, directory ends at end of file; pak1.pak: 3840 = 60 x 64." |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "PAK header" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-17T04:20:50.571Z" |
|---|
| verifications | |
|---|