benilla-re systems structs docs

s_gameTimeCallbacks

global · unassigned

Address
0xce85a8 · 16 bytes, up to 0xce85b7
Type
void *[4]
Meaning
Holds four time-changed callbacks for the bridge, 0 when unset; only the unreached 0x6c61e0 sets one
Confidence
verified, proof two
Finding
gametime/messages#time-changed-bridge

Finding: Time changed bridge in gametime: messages

0x6c5f50() runs after the clock takes a new time. It stamps the first three words of the light state as each frame does: the minute of day (0x6424c0), the day phase (0x643a70, rounded once to a float) and the day number (0x642320, as a float); calls 0x66ff60(1, 0), the light commit with a full recompute and no eye stamp (lighting/fog#world-light-commit); calls each non-zero callback of the four at 0xce85a8 with the hour in ecx and the minute in edx; and writes Time set to %s for the clock, class 0. The four slots stay 0: the one function that sets one, 0x6c61e0, is unreached. Callers: 0x6c5eee (opcode 0x42) and 0x6c6180 (0x45).

The derivation is in the doc.