mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 16:22:45 +03:00
feat(client): implement more of ClientServices::RealmEnumCallback
This commit is contained in:
parent
687c1e9414
commit
48dc644076
@ -484,17 +484,17 @@ void ClientServices::RealmEnumCallback(uint32_t a2) {
|
|||||||
return;
|
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::LoginConnection()->GetLoginServerType() == 1) {
|
||||||
if ( ClientServices::s_selectRealmInfoValid || ClientServices::SetSelectedRealmInfo(0)) {
|
if (ClientServices::s_selectRealmInfoValid || ClientServices::SetSelectedRealmInfo(0)) {
|
||||||
// TODO connection->byte2F5A = 1;
|
connection->byte2F5A = 1;
|
||||||
|
|
||||||
// TODO ClientServices::LoginConnection()->JoinRealm();
|
// TODO ClientServices::LoginConnection()->JoinRealm();
|
||||||
} else {
|
} else {
|
||||||
connection->Complete(0, 39);
|
connection->Complete(0, 39);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// TODO connection->byte2F5A = 1;
|
connection->byte2F5A = 1;
|
||||||
|
|
||||||
ClientServices::ConnectToSelectedServer();
|
ClientServices::ConnectToSelectedServer();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -53,6 +53,8 @@ void ClientConnection::Complete(int32_t result, int32_t errorCode) {
|
|||||||
void ClientConnection::Connect() {
|
void ClientConnection::Connect() {
|
||||||
// TODO
|
// TODO
|
||||||
|
|
||||||
|
this->byte2F5A = 0;
|
||||||
|
|
||||||
this->Initiate(COP_CONNECT, 7, nullptr);
|
this->Initiate(COP_CONNECT, 7, nullptr);
|
||||||
|
|
||||||
if (this->m_connected) {
|
if (this->m_connected) {
|
||||||
|
|||||||
@ -17,6 +17,7 @@ class ClientConnection : public RealmConnection {
|
|||||||
int32_t m_statusResult = 1;
|
int32_t m_statusResult = 1;
|
||||||
WOWCS_OPS m_statusCop = COP_NONE;
|
WOWCS_OPS m_statusCop = COP_NONE;
|
||||||
int32_t m_errorCode = 0;
|
int32_t m_errorCode = 0;
|
||||||
|
uint8_t byte2F5A = 0;
|
||||||
void (*m_cleanup)() = nullptr;
|
void (*m_cleanup)() = nullptr;
|
||||||
|
|
||||||
// Virtual member functions
|
// Virtual member functions
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user