benilla-re systems structs docs

DeletePatchPath

function · glue · host

Address
0x474830 · 83 bytes, up to 0x474882
Signature
bool __fastcall (const char *path)
Meaning
Deletes a file or else a directory, marking wow-patch.mpq for later deletion instead; returns 1
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.