mirror of
https://github.com/whoahq/whoa.git
synced 2026-11-20 21:14:56 +03:00
feat(client): add ClientServices::Disconnect
This commit is contained in:
1 parent
ab346f1b42
commit
88b93b89af
4 files changed
+8
-3
No files matched your search
@@ -160,6 +160,10 @@ ClientConnection* ClientServices::Connection() {
|
||||
return ClientServices::s_currentConnection;
|
||||
}
|
||||
|
||||
void ClientServices::Disconnect() {
|
||||
ClientServices::Connection()->Disconnect();
|
||||
}
|
||||
|
||||
const char* ClientServices::GetCurrentLoginPortal() {
|
||||
return ClientServices::s_loginObj->GetLoginServerType() == 1
|
||||
? ClientServices::s_darkPortalVar->GetString()
|
||||
|
||||
@@ -31,6 +31,7 @@ class ClientServices : public LoginResponse {
|
||||
// Static functions
|
||||
static void ConnectToSelectedServer();
|
||||
static ClientConnection* Connection();
|
||||
static void Disconnect();
|
||||
static const char* GetCurrentLoginPortal();
|
||||
static const char* GetCurrentLoginServer();
|
||||
static const char* GetErrorToken(int32_t errorCode);
|
||||
|
||||
Reference in new issue
Block a user