mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 03:02:30 +00:00
feat(glue): handle successful authentication in CGlueMgr::PollLoginServerLogin
This commit is contained in:
parent
531425d566
commit
b53f596b82
2 changed files with 13 additions and 1 deletions
|
|
@ -313,8 +313,9 @@ void CGlueMgr::PollLoginServerLogin() {
|
||||||
if (CGlueMgr::m_authenticated) {
|
if (CGlueMgr::m_authenticated) {
|
||||||
CGlueMgr::m_idleState = IDLE_NONE;
|
CGlueMgr::m_idleState = IDLE_NONE;
|
||||||
CGlueMgr::m_showedDisconnect = 0;
|
CGlueMgr::m_showedDisconnect = 0;
|
||||||
// Sub4D8BA0();
|
CGlueMgr::Sub4D8BA0();
|
||||||
CGlueMgr::m_authenticated = false;
|
CGlueMgr::m_authenticated = false;
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -591,6 +592,16 @@ void CGlueMgr::StatusDialogClick() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CGlueMgr::Sub4D8BA0() {
|
||||||
|
if (CGlueMgr::m_idleState != IDLE_NONE) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
CGlueMgr::m_idleState = IDLE_ACCOUNT_LOGIN;
|
||||||
|
CGlueMgr::m_showedDisconnect = 0;
|
||||||
|
ClientServices::Connection()->Connect();
|
||||||
|
}
|
||||||
|
|
||||||
void CGlueMgr::Suspend() {
|
void CGlueMgr::Suspend() {
|
||||||
// TODO
|
// TODO
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -65,6 +65,7 @@ class CGlueMgr {
|
||||||
static void SetLoginStateAndResult(LOGIN_STATE state, LOGIN_RESULT result, char const* addrStr, char const* stateStr, char const* resultStr, uint8_t flags);
|
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 SetScreen(const char* screen);
|
||||||
static void StatusDialogClick();
|
static void StatusDialogClick();
|
||||||
|
static void Sub4D8BA0();
|
||||||
static void Suspend();
|
static void Suspend();
|
||||||
static void UpdateCurrentScreen(const char* screen);
|
static void UpdateCurrentScreen(const char* screen);
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue