benilla-re systems structs docs

BeginPatchDownload

function · glue · orchestration

Address
0x474610 · 244 bytes, up to 0x474703
Signature
void __cdecl (void)
Meaning
Shows the patchdownload screen in state 10 and opens the patch file as a download for the logon server's transfer
Confidence
verified, proof one
Finding
glue/downloads#patch-download

Finding: Patch download in glue: survey and patch downloads

0x474610 closes the status dialog (glue event 5), sets screen state 10, shows the patchdownload screen, replaces any open patch file, opens a new one under the transfer's name, or wow-patch.mpq for Patch, and accepts the transfer at the offset the open returns. Each chunk is written to the file. While in state 10 the update polls it. Complete raises PATCH_DOWNLOADED (17) with progress 1.0 and finishes the file, then polls again: failed now shows the failure dialog, else state 0; the file is freed either way. Failed shows the failure dialog. Otherwise, at most every 250 ms, it stores the progress, raises PATCH_UPDATE_PROGRESS (16), and cancels with DISCONNECTED when the logon link is down.

The derivation is in the doc.

Callers 1

Callees 11

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