benilla-re systems structs docs

ProcessTutorialTimers

function · ui · primitive

Address
0x4b5840 · 159 bytes, up to 0x4b58de
Meaning
Plays the sound and signals TUTORIAL_TRIGGER for every delayed prompt whose deadline came
Confidence
verified, proof one
Finding
ui/tutorials#the-delayed-trigger

Finding: The delayed trigger in ui: tutorials

A delay above 0 cancels the pending timer ProcessTutorialTimers, allocates a 16-byte node (links in the first 8 bytes, the number at +0x8, the deadline now + delay at +0xc, from OsGetAsyncTimeMs), links it into the list 0xb71178 and calls 0x4b57f0(now). That arms one game timer (0x401520) for the smallest time to a deadline, 0 for a deadline already past, and keeps its handle in 0xb711d8. The callback 0x4b5840 clears the handle, plays the sound and signals the event for every node whose deadline has come, frees each, and re-arms through 0x4b57f0. Only one number is queued by the client: number 3, 10000 ms after a forward, backward or autorun press.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 6

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