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

This commit is contained in:
fallenoak committed 2023-02-07 23:59:36 -06:00
1 parent 531425d566
commit b53f596b82
2 files changed
+13 -1

No files matched your search

+12 -1
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
}
+1
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);
};