mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 11:12:29 +00:00
feat(net): parse realm list
This commit is contained in:
parent
fc7fa1dbdc
commit
22bfe894d2
10 changed files with 222 additions and 3 deletions
|
|
@ -1,5 +1,7 @@
|
|||
#include "net/login/Login.hpp"
|
||||
#include "net/login/LoginResponse.hpp"
|
||||
#include <cstring>
|
||||
#include <common/DataStore.hpp>
|
||||
#include <storm/Memory.hpp>
|
||||
#include <storm/String.hpp>
|
||||
|
||||
|
|
@ -17,6 +19,14 @@ bool Login::OnlineIdle() {
|
|||
return true;
|
||||
}
|
||||
|
||||
void Login::RealmListResult(CDataStore* msg) {
|
||||
if (!msg || !msg->IsFinal()) {
|
||||
this->m_loginResponse->HandleRealmData(4, nullptr);
|
||||
} else {
|
||||
this->m_loginResponse->HandleRealmData(0, msg);
|
||||
}
|
||||
}
|
||||
|
||||
void Login::SetLogonCreds(const char* accountName, const char* password) {
|
||||
SStrCopy(this->m_accountName, accountName, 1280);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue