benilla-re systems structs docs

RealmConnection::HandleLogoutComplete

function · net · orchestration

Address
0x5b4620 · 13 bytes, up to 0x5b462c
Signature
uint32_t __thiscall (RealmConnection *this, uint32_t opcode, uint32_t arg, CDataStore *msg)
Meaning
Calls its own slot 0x50 for the logout complete message, which has no body
Confidence
verified, proof two
Finding
net/connection#logout-replies

Finding: Logout replies in net: connection

SMSG_LOGOUT_RESPONSE (0x4c) is a u32 result and a byte, the instant flag. Result 0 with the flag clear fires PLAYER_CAMPING when the quit byte +0x1b1c is zero and PLAYER_QUITING when it is set; with the flag set it fires nothing; a non-zero result raises game error 0x180 (ERR_LOGOUT_FAILED) and clears the pending byte. SMSG_LOGOUT_COMPLETE (0x4d, empty) runs 0x5aaeb0: it leaves the world (0x5aaf40), tears the game down through 0x401ee0(1, 1, 0) when it is the current connection, clears the pending byte, and quits the client through 0x401560(0) when the quit byte was set. SMSG_LOGOUT_CANCEL_ACK (0x4f, empty) fires LOGOUT_CANCEL and clears the pending byte, only while one is pending.

The derivation is in the doc.

Callers 1

Callees 0

None by a direct call or jump.

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