mirror of
https://github.com/whoahq/whoa.git
synced 2026-11-21 13:35:20 +03:00
feat(client): implement more of ClientServices::Logon
This commit is contained in:
6 files changed
+32
-9
No files matched your search
@@ -26,7 +26,7 @@ class Grunt::ClientResponse {
|
||||
virtual const uint8_t* GetVersionChallenge() = 0;
|
||||
virtual void GetRealmList() = 0;
|
||||
virtual void Reconnect() = 0;
|
||||
virtual void Logon(const char* a2, const char* a3) = 0;
|
||||
virtual void Logon(const char* loginServer, const char* loginPortal) = 0;
|
||||
virtual void ProveVersion(const uint8_t* versionChecksum) = 0;
|
||||
virtual void Logoff() = 0;
|
||||
virtual void Init(LoginResponse* loginResponse) = 0;
|
||||
|
||||
@@ -125,7 +125,7 @@ void GruntLogin::Logoff() {
|
||||
// TODO
|
||||
}
|
||||
|
||||
void GruntLogin::Logon(const char* a2, const char* a3) {
|
||||
void GruntLogin::Logon(const char* loginServer, const char* loginPortal) {
|
||||
if (this->m_loggedOn) {
|
||||
return;
|
||||
}
|
||||
@@ -141,11 +141,11 @@ void GruntLogin::Logon(const char* a2, const char* a3) {
|
||||
0x0
|
||||
);
|
||||
|
||||
if (!a2) {
|
||||
a2 = "us.logon.worldofwarcraft.com:3724";
|
||||
if (!loginServer) {
|
||||
loginServer = "us.logon.worldofwarcraft.com:3724";
|
||||
}
|
||||
|
||||
this->m_clientLink->Connect(a2);
|
||||
this->m_clientLink->Connect(loginServer);
|
||||
}
|
||||
|
||||
void GruntLogin::LogonResult(Grunt::Result result, const uint8_t* sessionKey, uint32_t sessionKeyLen, uint16_t flags) {
|
||||
|
||||
@@ -26,7 +26,7 @@ class GruntLogin : public Login {
|
||||
virtual const uint8_t* GetVersionChallenge();
|
||||
virtual void GetRealmList();
|
||||
virtual void Reconnect();
|
||||
virtual void Logon(const char* a2, const char* a3);
|
||||
virtual void Logon(const char* loginServer, const char* loginPortal);
|
||||
virtual void ProveVersion(const uint8_t* versionChecksum);
|
||||
virtual void Logoff();
|
||||
virtual void Init(LoginResponse* loginResponse);
|
||||
|
||||
@@ -16,6 +16,7 @@ class LoginResponse {
|
||||
LOGIN_RESULT m_loginResult;
|
||||
|
||||
// Virtual member functions
|
||||
virtual const char* GetLoginServer() = 0;
|
||||
virtual int32_t GetLoginServerType() = 0;
|
||||
virtual void LoginServerStatus(LOGIN_STATE state, LOGIN_RESULT result, const char* addrStr, const char* stateStr, const char* resultStr, uint8_t flags) = 0;
|
||||
virtual void RealmEnumCallback(uint32_t a2) = 0;
|
||||
|
||||
Reference in new issue
Block a user