feat(client): implement more of ClientServices::RealmEnumCallback

This commit is contained in:
fallenoak 2025-10-10 13:04:19 -05:00
parent 687c1e9414
commit 48dc644076
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D
3 changed files with 7 additions and 4 deletions

View File

@ -484,17 +484,17 @@ void ClientServices::RealmEnumCallback(uint32_t a2) {
return;
}
if (connection->m_statusCop == COP_CONNECT /* TODO && !connection->byte2F5A */) {
if (connection->m_statusCop == COP_CONNECT && !connection->byte2F5A) {
if (ClientServices::LoginConnection()->GetLoginServerType() == 1) {
if ( ClientServices::s_selectRealmInfoValid || ClientServices::SetSelectedRealmInfo(0)) {
// TODO connection->byte2F5A = 1;
if (ClientServices::s_selectRealmInfoValid || ClientServices::SetSelectedRealmInfo(0)) {
connection->byte2F5A = 1;
// TODO ClientServices::LoginConnection()->JoinRealm();
} else {
connection->Complete(0, 39);
}
} else {
// TODO connection->byte2F5A = 1;
connection->byte2F5A = 1;
ClientServices::ConnectToSelectedServer();
}

View File

@ -53,6 +53,8 @@ void ClientConnection::Complete(int32_t result, int32_t errorCode) {
void ClientConnection::Connect() {
// TODO
this->byte2F5A = 0;
this->Initiate(COP_CONNECT, 7, nullptr);
if (this->m_connected) {

View File

@ -17,6 +17,7 @@ class ClientConnection : public RealmConnection {
int32_t m_statusResult = 1;
WOWCS_OPS m_statusCop = COP_NONE;
int32_t m_errorCode = 0;
uint8_t byte2F5A = 0;
void (*m_cleanup)() = nullptr;
// Virtual member functions