From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "behavior" |
|---|
| subject | "Format:Adobe Director (RIFX)" |
|---|
| claim | "In FGDM/FGDC files the header after the type is: tag Fver, varint length, varint afterburner version (>=0x401 adds varint imap version and varint Director version; >=0x501 adds a length-prefixed version string); tag Fcdr, varint length, a zlib stream with u16 count and 16-byte compression GUIDs (zlib is GUID AC99E904-0070-0B36-... ); tag ABMP, varint length, varint compression type, varint uncompressed length, a zlib stream listing resources; then tag FGEI, one unused varint and the initial load segment (a zlib stream), which is resource id 2. Integers marked varint are big-endian base-128 (7 bits per byte, high bit = more) regardless of the file byte order." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:Adobe Director (RIFX)" |
|---|
| observed_in | |
|---|
|
|---|
| data | | trigger | "RIFX type FGDM or FGDC" |
|---|
| effect | "resources are located through ABMP entries after two unknown varints and a varint resource count (each entry: varint id, varint offset [+ data fork offset when >= 0], varint compressed size, varint uncompressed size, varint compression type, 4-byte tag); resource id 2 (ILS) must be listed; the ILS body is decompressed and holds entries of varint resource id followed by that resource's size in bytes" |
|---|
| function | "RIFXArchive::readAfterburnerMap, readVarInt" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "readAfterburnerMap in full: Fver/Fcdr/ABMP/FGEI parsing, zlib GUID test (data1 0xAC99E904, data2 0x0070, data3 0x0B36, with the two 8-byte tails in either byte order), ABMP entry loop, ILS loop. The varint is in engines/director/util.cpp readVarInt (line 1287)." |
|---|
| repo | "https://github.com/scummvm/scummvm" |
|---|
| commit | "3f4203f8833f12615b0df5fa27f19d3c30d3e5d8" |
|---|
| path | "engines/director/archive.cpp" |
|---|
| lines | "877-1060" |
|---|
|
| type | "source" |
|---|
| detail | "readVarInt: val = (val << 7) | (b & 0x7f) while the high bit is set." |
|---|
| repo | "https://github.com/scummvm/scummvm" |
|---|
| commit | "3f4203f8833f12615b0df5fa27f19d3c30d3e5d8" |
|---|
| path | "engines/director/util.cpp" |
|---|
| lines | "1287-1296" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "Afterburner map" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T08:48:23.202Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T12:27:03.134Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read RIFXArchive::readAfterburnerMap in scummvm archive.cpp 877-1062 at 3f4203f line by line (Fver, Fcdr GUID test, ABMP header and entry loop, FGEI unused varint, ILS loop) and the dispatch at 695-697 for FGDM/FGDC; all details of the corrected claim match." |
|---|
|
|
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-19T09:34:03.975Z" |
|---|
| summary | "Details left out of the ABMP description, from scummvm archive.cpp readAfterburnerMap (877-1062): the decompressed ABMP starts with two unknown varints and a varint resource count before the…" |
|---|
| changed | |
|---|
|
| by | "PatientStepper99" |
|---|
| date | "2026-10-19T11:48:55.058Z" |
|---|
| summary | "Omission: after the FGEI tag readAfterburnerMap reads one more (unused) varint before the zlib-compressed ILS body (ilsUnk1). Read lines 877-1062 again at 3f4203f." |
|---|
| changed | |
|---|
|
|
|---|