feat(client): register handlers in ClientInitializeGame

This commit is contained in:
fallenoak committed 2025-09-22 22:07:23 -05:00
1 parent 667e50bd67
commit ea7fda972e
7 files changed
+94 -7

No files matched your search

+8 -2
View File
@@ -340,8 +340,10 @@ void CGlueMgr::LoginServerLogin(const char* accountName, const char* password) {
memset(const_cast<char*>(password), 0, SStrLen(password));
}
void CGlueMgr::QuitGame() {
ClientPostClose(0);
int32_t CGlueMgr::OnKickReasonMsg(void* param, NETMESSAGE msgId, uint32_t time, CDataStore* msg) {
// TODO
return 0;
}
void CGlueMgr::PollAccountLogin(int32_t errorCode, const char* msg, int32_t complete, int32_t result, WOWCS_OPS op) {
@@ -497,6 +499,10 @@ void CGlueMgr::PollLoginServerLogin() {
}
}
void CGlueMgr::QuitGame() {
ClientPostClose(0);
}
void CGlueMgr::Resume() {
// TODO
// CGlueMgr::m_disconnectPending = 0;
+3 -1
View File
@@ -5,6 +5,7 @@
#include "net/Types.hpp"
#include <cstdint>
class CDataStore;
class CSimpleTop;
class CGlueMgr {
@@ -62,10 +63,11 @@ class CGlueMgr {
static int32_t Idle(const void* a1, void* a2);
static void Initialize();
static void LoginServerLogin(const char* accountName, const char* password);
static void QuitGame();
static int32_t OnKickReasonMsg(void* param, NETMESSAGE msgId, uint32_t time, CDataStore* msg);
static void PollAccountLogin(int32_t errorCode, const char* msg, int32_t complete, int32_t result, WOWCS_OPS op);
static void PollEnterWorld();
static void PollLoginServerLogin();
static void QuitGame();
static void Resume();
static void SetCurrentAccount(const char* accountName);
static void SetLoginStateAndResult(LOGIN_STATE state, LOGIN_RESULT result, char const* addrStr, char const* stateStr, char const* resultStr, uint8_t flags);