benilla-re systems structs docs

PollPatchDownload

function · glue · primitive

Address
0x474b70 · 333 bytes, up to 0x474cbc
Signature
void __cdecl (void)
Meaning
Finishes or fails the patch download, or every 250 ms stores its progress and signals PATCH_UPDATE_PROGRESS
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 14

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