benilla-re systems structs docs

RunPrepatchList

function · glue · orchestration

Address
0x474890 · 315 bytes, up to 0x4749ca
Signature
bool __fastcall (void *archive)
Meaning
Runs the extract, execute and delete lines of the archive's prepatch.lst; 0 at the first failure
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 8

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