mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-02 08:42:45 +03:00
feat(client): implement more of ClientServices::RealmEnumCallback
This commit is contained in:
parent
62df356940
commit
687c1e9414
@ -474,21 +474,35 @@ void ClientServices::RealmEnumCallback(uint32_t a2) {
|
|||||||
|
|
||||||
if (a2 == 1) {
|
if (a2 == 1) {
|
||||||
connection->Complete(0, 23);
|
connection->Complete(0, 23);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (a2 == 2 || a2 == 3 || a2 == 4) {
|
if (a2 == 2 || a2 == 3 || a2 == 4) {
|
||||||
connection->Complete(0, 37);
|
connection->Complete(0, 37);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO statusCop checks
|
if (connection->m_statusCop == COP_CONNECT /* TODO && !connection->byte2F5A */) {
|
||||||
|
|
||||||
if (ClientServices::LoginConnection()->GetLoginServerType() == 1) {
|
if (ClientServices::LoginConnection()->GetLoginServerType() == 1) {
|
||||||
// TODO Battlenet logic
|
if ( ClientServices::s_selectRealmInfoValid || ClientServices::SetSelectedRealmInfo(0)) {
|
||||||
|
// TODO connection->byte2F5A = 1;
|
||||||
|
|
||||||
return;
|
// TODO ClientServices::LoginConnection()->JoinRealm();
|
||||||
|
} else {
|
||||||
|
connection->Complete(0, 39);
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
// TODO connection->byte2F5A = 1;
|
||||||
|
|
||||||
ClientServices::ConnectToSelectedServer();
|
ClientServices::ConnectToSelectedServer();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (connection->m_statusCop == COP_GET_REALMS) {
|
||||||
|
connection->Complete(1, 36);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user