Script::DisconnectFromServer
function · glue · orchestration
- Address
0x46d340· 52 bytes, up to0x46d373- Signature
int __fastcall (lua_State *L)- Meaning
- Drops a connected world session after setting 0xb41d98, then cancels the logon with no null test
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- glue/script#server-name-and-connection
Finding: Server name and connection in glue: the script functions
GetServerName (0x46d280) returns three values: the realmName CVar's string, then two flags
from the Cfg_Configs row whose +0x04 equals the selected realm record's +0x04: the row's
+0x08 nonzero, then its +0x0c nonzero; with no selected realm, an empty table or no match,
nil and nil. IsConnectedToServer (0x46d380) returns the flag of the world session's +0x1b00.
DisconnectFromServer (0x46d340) with that flag set stores 1 to 0xb41d98 and drops the world
connection; then, in every case, it cancels the logon on the login session, with no null test:
before the first logon creates that session, the cancel reads +0x05 of a null pointer and
faults.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 4
- ClientConnection::Disconnect net
- ClientServices::GetCurrent net
- ClientServices::GetLoginSession net
- CancelLogon net
Calls and jumps by a bare address, from tables/calls.tsv.