mirror of
https://github.com/whoahq/whoa.git
synced 2026-11-29 09:12:31 +03:00
feat(client): add ClientServices::ValidDisconnect
This commit is contained in:
2 files changed
+7
No files matched your search
@@ -422,6 +422,12 @@ int32_t ClientServices::SetSelectedRealmInfo(int32_t a1) {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int32_t ClientServices::ValidDisconnect(const void* client) {
|
||||||
|
STORM_ASSERT(client);
|
||||||
|
|
||||||
|
return client == ClientServices::Connection();
|
||||||
|
}
|
||||||
|
|
||||||
const char* ClientServices::GetLoginServer() {
|
const char* ClientServices::GetLoginServer() {
|
||||||
return ClientServices::s_loginObj->GetLoginServerType() == 1
|
return ClientServices::s_loginObj->GetLoginServerType() == 1
|
||||||
? ClientServices::s_realmListBNVar->GetString()
|
? ClientServices::s_realmListBNVar->GetString()
|
||||||
|
|||||||
@@ -49,6 +49,7 @@ class ClientServices : public LoginResponse {
|
|||||||
static void SetCharacterInfo(const CHARACTER_INFO* info);
|
static void SetCharacterInfo(const CHARACTER_INFO* info);
|
||||||
static void SetMessageHandler(NETMESSAGE msgId, MESSAGE_HANDLER handler, void* param);
|
static void SetMessageHandler(NETMESSAGE msgId, MESSAGE_HANDLER handler, void* param);
|
||||||
static int32_t SetSelectedRealmInfo(int32_t a1);
|
static int32_t SetSelectedRealmInfo(int32_t a1);
|
||||||
|
static int32_t ValidDisconnect(const void* client);
|
||||||
|
|
||||||
// Virtual member functions
|
// Virtual member functions
|
||||||
virtual const char* GetLoginServer();
|
virtual const char* GetLoginServer();
|
||||||
|
|||||||
Reference in new issue
Block a user