mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 00:02: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;
|
||||
}
|
||||
|
||||
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();
|
||||
}
|
||||
|
||||
@ -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) {
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user