mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2026-11-21 05:24:32 +03:00
feat(client): handle successful authentication in ClientServices
This commit is contained in:
10 files changed
+60
No files matched your search
@@ -250,6 +250,7 @@ void CGlueMgr::PollLoginServerLogin() {
|
||||
// CGlueMgr::DisplayLoginStatus();
|
||||
}
|
||||
|
||||
// Open new client connection after successful authentication
|
||||
if (CGlueMgr::m_authenticated) {
|
||||
CGlueMgr::m_idleState = IDLE_NONE;
|
||||
CGlueMgr::m_showedDisconnect = 0;
|
||||
@@ -438,6 +439,11 @@ void CGlueMgr::Resume() {
|
||||
// }
|
||||
}
|
||||
|
||||
void CGlueMgr::SetCurrentAccount(const char* accountName) {
|
||||
SStrCopy(CGlueMgr::m_accountName, accountName, sizeof(CGlueMgr::m_accountName));
|
||||
SStrUpper(CGlueMgr::m_accountName);
|
||||
}
|
||||
|
||||
void CGlueMgr::SetLoginStateAndResult(LOGIN_STATE state, LOGIN_RESULT result, const char* addrStr, const char* stateStr, const char* resultStr, uint8_t flags) {
|
||||
// TODO
|
||||
// CGlueMgr::LogConnectionStatus("GRUNT: state: %s result: %s %s", a4);
|
||||
|
||||
@@ -60,6 +60,7 @@ class CGlueMgr {
|
||||
static void QuitGame();
|
||||
static void PollLoginServerLogin();
|
||||
static void Resume();
|
||||
static void SetCurrentAccount(const char* accountName);
|
||||
static void SetLoginStateAndResult(LOGIN_STATE state, LOGIN_RESULT result, char const* addrStr, char const* stateStr, char const* resultStr, uint8_t flags);
|
||||
static void SetScreen(const char* screen);
|
||||
static void StatusDialogClick();
|
||||
|
||||
Reference in new issue
Block a user