benilla-re systems structs docs

ExtractArchiveFile

function · glue · host

Address
0x474790 · 134 bytes, up to 0x474815
Signature
bool __fastcall (void *archive, const char *name)
Meaning
Writes an archive's file of the given name to disk; returns 0 when the load or the create fails
Confidence
verified, proof one
Finding
glue/downloads#the-prepatch-list

Finding: The prepatch list in glue: survey and patch downloads

prepatch.lst is read from the archive and split into lines at \r\n. Each line is a command: extract <file> writes the archive's file of that name to disk; execute <file> starts it as a process with an empty command line; delete <path> deletes the file, or, when no file of that name exists, removes the directory of that name. delete wow-patch.mpq only marks the patch for deletion after the list. Lines run in order; other lines are ignored. The list fails, and stops, at the first extract or launch that fails; a list that cannot be loaded fails too.

The derivation is in the doc.

Callers 1

Callees 5

Calls and jumps by a bare address, from tables/calls.tsv.