feat(glue): handle successful authentication in CGlueMgr::PollLoginServerLogin

This commit is contained in:
fallenoak 2023-02-07 23:59:36 -06:00
parent 531425d566
commit b53f596b82
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D
2 changed files with 13 additions and 1 deletions

View File

@ -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
}

View File

@ -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);
};