mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 11:12:29 +00:00
feat(client): implement auth response handler in realm adapter
This commit is contained in:
parent
23d537103e
commit
1b27761d0c
5 changed files with 58 additions and 26 deletions
|
|
@ -22,12 +22,12 @@ bool ClientServices::s_selectRealmInfoValid;
|
|||
|
||||
void ClientServices::ConnectToSelectedServer() {
|
||||
if (!ClientServices::s_selectRealmInfoValid && !ClientServices::SetSelectedRealmInfo(0)) {
|
||||
ClientServices::Connection()->SetStatus(0, 39);
|
||||
ClientServices::Connection()->Complete(0, 39);
|
||||
return;
|
||||
}
|
||||
|
||||
if (ClientServices::Connection()->GetState() != NS_INITIALIZED) {
|
||||
ClientServices::Connection()->SetStatus(0, 39);
|
||||
ClientServices::Connection()->Complete(0, 39);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -210,12 +210,12 @@ void ClientServices::RealmEnumCallback(uint32_t a2) {
|
|||
auto connection = ClientServices::Connection();
|
||||
|
||||
if (a2 == 1) {
|
||||
connection->SetStatus(0, 23);
|
||||
connection->Complete(0, 23);
|
||||
return;
|
||||
}
|
||||
|
||||
if (a2 == 2 || a2 == 3 || a2 == 4) {
|
||||
connection->SetStatus(0, 37);
|
||||
connection->Complete(0, 37);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue