mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2026-01-30 19:42:51 +03:00
feat(glue): implement CGlueMgr::PollRealmList
This commit is contained in:
parent
06eeedbb68
commit
5da8709805
@ -361,6 +361,11 @@ int32_t CGlueMgr::Idle(const void* a1, void* a2) {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
case IDLE_REALM_LIST: {
|
||||||
|
CGlueMgr::PollRealmList(errorCode, msg, complete, result, op);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
case IDLE_DELETE_CHARACTER: {
|
case IDLE_DELETE_CHARACTER: {
|
||||||
CGlueMgr::PollDeleteCharacter(errorCode, msg, complete, result, op);
|
CGlueMgr::PollDeleteCharacter(errorCode, msg, complete, result, op);
|
||||||
break;
|
break;
|
||||||
@ -688,6 +693,33 @@ void CGlueMgr::PollCharacterList(int32_t errorCode, const char* msg, int32_t com
|
|||||||
CGlueMgr::m_accountMsgAvailable = 0;
|
CGlueMgr::m_accountMsgAvailable = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CGlueMgr::PollRealmList(int32_t errorCode, const char* msg, int32_t complete, int32_t result, WOWCS_OPS op) {
|
||||||
|
FrameScript_SignalEvent(4u, "%s", msg);
|
||||||
|
if (CGlueMgr::HandleBattlenetDisconnect()) {
|
||||||
|
CGlueMgr::m_idleState = IDLE_NONE;
|
||||||
|
CGlueMgr::m_showedDisconnect = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!complete) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (result) {
|
||||||
|
CGlueMgr::m_idleState = IDLE_NONE;
|
||||||
|
CGlueMgr::m_showedDisconnect = 0;
|
||||||
|
FrameScript_SignalEvent(5u, nullptr);
|
||||||
|
CRealmList::UpdateList();
|
||||||
|
if (!CGlueMgr::m_accountMsgAvailable)
|
||||||
|
return;
|
||||||
|
FrameScript_SignalEvent(34u, nullptr);
|
||||||
|
CGlueMgr::m_accountMsgAvailable = 0;
|
||||||
|
} else {
|
||||||
|
FrameScript_SignalEvent(3u, "%s%s", "OKAY", msg);
|
||||||
|
CGlueMgr::m_idleState = IDLE_NONE;
|
||||||
|
CGlueMgr::m_showedDisconnect = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void CGlueMgr::PollDeleteCharacter(int32_t errorCode, const char* msg, int32_t complete, int32_t result, WOWCS_OPS op) {
|
void CGlueMgr::PollDeleteCharacter(int32_t errorCode, const char* msg, int32_t complete, int32_t result, WOWCS_OPS op) {
|
||||||
FrameScript_SignalEvent(4, "%s", msg);
|
FrameScript_SignalEvent(4, "%s", msg);
|
||||||
|
|
||||||
|
|||||||
@ -89,6 +89,7 @@ class CGlueMgr {
|
|||||||
static void PollAccountLogin(int32_t errorCode, const char* msg, int32_t complete, int32_t result, WOWCS_OPS op);
|
static void PollAccountLogin(int32_t errorCode, const char* msg, int32_t complete, int32_t result, WOWCS_OPS op);
|
||||||
static void PollLoginServerLogin();
|
static void PollLoginServerLogin();
|
||||||
static void PollCharacterList(int32_t errorCode, const char* msg, int32_t complete, int32_t result, WOWCS_OPS op);
|
static void PollCharacterList(int32_t errorCode, const char* msg, int32_t complete, int32_t result, WOWCS_OPS op);
|
||||||
|
static void PollRealmList(int32_t errorCode, const char* msg, int32_t complete, int32_t result, WOWCS_OPS op);
|
||||||
static void PollDeleteCharacter(int32_t errorCode, const char* msg, int32_t complete, int32_t result, WOWCS_OPS op);
|
static void PollDeleteCharacter(int32_t errorCode, const char* msg, int32_t complete, int32_t result, WOWCS_OPS op);
|
||||||
static void PollUserSurvey();
|
static void PollUserSurvey();
|
||||||
static void CancelLogin();
|
static void CancelLogin();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user