mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-04-19 03:20:11 +03:00
feat(glue): handle successful authentication in CGlueMgr::PollLoginServerLogin
This commit is contained in:
parent
531425d566
commit
b53f596b82
@ -313,8 +313,9 @@ void CGlueMgr::PollLoginServerLogin() {
|
||||
if (CGlueMgr::m_authenticated) {
|
||||
CGlueMgr::m_idleState = IDLE_NONE;
|
||||
CGlueMgr::m_showedDisconnect = 0;
|
||||
// Sub4D8BA0();
|
||||
CGlueMgr::Sub4D8BA0();
|
||||
CGlueMgr::m_authenticated = false;
|
||||
|
||||
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() {
|
||||
// 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 SetScreen(const char* screen);
|
||||
static void StatusDialogClick();
|
||||
static void Sub4D8BA0();
|
||||
static void Suspend();
|
||||
static void UpdateCurrentScreen(const char* screen);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user