benilla-re systems structs docs

CGGameUI::InitializeGame

function · ui · primitive

Address
0x48f480 · 518 bytes, up to 0x48f685
Meaning
Registers the game handlers and arms the billing warning timer
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/billing#the-warning-timer
Test
ui::billing_arm

Finding: The warning timer in ui: play time and the billing rest time

CGGameUI::InitializeGame zeroes the deadline 0xb4e360 at 0x48f636. With the session's remaining minutes R (+0x1af4) and plan flags, it then arms when 0 < R <= 4320 (unsigned) and flag bit 1 is clear: the deadline becomes now + R * 60000, now being the millisecond clock 0x42c010, and the line clock 0xb4e364 and dialog latch 0xb4e368 are zeroed. Otherwise those two keep their values and the deadline stays 0. It then jumps to CGGameUI::Initialize. The function has one caller, 0x401602 in 0x401570, whose one caller is 0x46c236 in the glue manager's state 8: it runs once per login into the world and never on ReloadUI, which runs 0x490bd0 and 0x48fbf0 alone.

The derivation is in the doc.

Callers 1

Callees 38

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