ClientDestroyGame
function · client
- Address
0x401ee0· 443 bytes, up to0x40209a- Meaning
- Tears the game down: handlers, objects, modules, interface shutdown, account-data timers; no-op before world entry
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- core/close#world-teardown
Finding: World teardown in core: closing the window
With a world entered, 0x401ee0 runs: it unregisters its category 5 handler 0x401ec0 and ten opcode handlers
(0x1cb, 0xc4, 0xc8, 0x1cd, 0x3e, 0x3f, 0x40, 0x99, 0x9b, 0x236); frees the object array
[0x8827c8]; shuts thirteen modules (0x401fc1 to 0x401ffd); unregisters 0x616800; destroys the object
manager (0x402011), whose player destructor runs the leave-world cascade 0x490a80 while the connection is
up; shuts the other world modules; runs the interface shutdown 0x491180 (0x490bd0 first); and kills the
account-data timers (0x5afe00). With edx zero, as the stop handler passes it, it ends there.
The derivation is in the doc.
Callers 4
- ClientContextStop client
- CGlueMgr::NetDisconnectHandler glue
- ClientConnection::FailCharacterLogin net
- ClientConnection::HandleLogoutComplete net
Callees 31
- EndLoadingScreen loadingscreen
- EventUnregister core
- SndInterfaceWorldShutdown sound
- ClntObjMgrDestroy objectlayer
- ClntObjMgrReleaseWatchers objectlayer
- CGlueMgr::Resume glue
- CGlueMgr::SetScreen glue
- CGGameUI::ShutdownGame ui
- ClientServices::ClearMessageHandler net
- ShutdownFriendList net
- ShutdownAccountData net
- TradeClearMessageHandlers objectlayer
- RemoveItemWatchers objectlayer
- PlayerDestroy objectlayer
- RemovePlayerTypeWatchers objectlayer
- RemoveGameObjectWatchers objectlayer
- FreeNamePlatePool objectlayer
- CGUnit_C::Shutdown objectlayer
- ShutdownSelectionCircle objectlayer
- MovementDestroy collision
- FreeAllLootRolls objectlayer
- SMemFree storm
- CWorld::UnloadMap terrain
- ResetZoneNames terrain
- 0x6c5a90 unassigned
- ClearGameTimeHandlers unassigned
- LootDestroy unassigned
- WorldTextShutdownPools playername
- PlayerNameShutdown playername
- WorldTextShutdown playername
- SpellTableDestroy spell
Calls and jumps by a bare address, from tables/calls.tsv.