benilla-re systems structs docs

s_serverAlertText

global · glue

Address
0xb414f8 · 2048 bytes, up to 0xb41cf7
Type
char[2048]
Meaning
Holds the downloaded server alert text, empty at startup; 0x46a580 appends to it
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.