benilla-re systems structs docs

ReceiveServerAlertData

function · glue · orchestration

Address
0x46a580 · 141 bytes, up to 0x46a60c
Signature
uint8_t __fastcall (uint32_t unused, const char *data, uint32_t size, uint8_t done, uint32_t extra)
Meaning
Appends a downloaded chunk to the alert text; on the done call marks it ready when it starts SERVERALERT:
Confidence
verified, proof one
Finding
glue/manager#server-alert-fetch

Finding: Server alert fetch in glue: the manager

The startup reads the Lua global SERVER_ALERT_URL (empty when not a string), sets pending 0xb41e28 to 1, ready 0xb41e2c to 0, empties the 2048-byte buffer 0xb414f8, and starts a download with the callback 0x46a580; if it does not start, pending goes back to 0. Each call with a size n above 0 copies at most min(n, 2048) − 1 bytes, stopping at a NUL, and appends them, keeping the buffer to 2047 characters and a NUL. The final call, flagged done, sets ready to 1 when the buffer is not empty and begins with SERVERALERT: in any case, then clears pending. Nothing restarts the download.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 4

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