feat(net): implement remaining failure cases in GruntLogin::LogonResult

This commit is contained in:
fallenoak committed 2025-09-30 22:51:21 -05:00
1 parent ecc43fe40b
commit 8b4cc6121a
3 files changed
+81 -65

No files matched your search

+3 -3
View File
@@ -314,7 +314,7 @@ int32_t Grunt::ClientLink::CmdAuthLogonProof(CDataStore& msg) {
if (verifyResult != SRP6_OK) {
this->SetState(STATE_CONNECTED);
this->m_clientResponse->LogonResult(Grunt::GRUNT_RESULT_11, nullptr, 0, 0x0);
this->m_clientResponse->LogonResult(Result::GRUNT_RESULT_11, nullptr, 0, 0x0);
return 2;
}
@@ -328,7 +328,7 @@ int32_t Grunt::ClientLink::CmdAuthLogonProof(CDataStore& msg) {
this->SetState(STATE_AUTHENTICATED);
this->m_clientResponse->LogonResult(Grunt::GRUNT_RESULT_0, this->m_srpClient.sessionKey, 40, logonFlags);
this->m_clientResponse->LogonResult(Result::SUCCESS, this->m_srpClient.sessionKey, 40, logonFlags);
return 2;
}
@@ -412,7 +412,7 @@ int32_t Grunt::ClientLink::CmdAuthReconnectProof(CDataStore& msg) {
this->SetState(STATE_AUTHENTICATED);
this->m_clientResponse->ReconnectResult(Grunt::GRUNT_RESULT_0, this->m_reconnectSessionKey, 40, reconnectFlags);
this->m_clientResponse->ReconnectResult(Result::SUCCESS, this->m_reconnectSessionKey, 40, reconnectFlags);
return 2;
}
+34 -33
View File
@@ -12,40 +12,41 @@ namespace Grunt {
extern Command<ClientLink> s_clientCommands[];
enum Result {
GRUNT_RESULT_0 = 0,
GRUNT_RESULT_1 = 1,
GRUNT_RESULT_2 = 2,
GRUNT_RESULT_3 = 3,
GRUNT_RESULT_4 = 4,
GRUNT_RESULT_5 = 5,
GRUNT_RESULT_6 = 6,
GRUNT_RESULT_7 = 7,
GRUNT_RESULT_8 = 8,
GRUNT_RESULT_9 = 9,
GRUNT_RESULT_10 = 10,
GRUNT_RESULT_11 = 11,
GRUNT_RESULT_12 = 12,
GRUNT_RESULT_13 = 13,
GRUNT_RESULT_14 = 14,
GRUNT_RESULT_15 = 15,
GRUNT_RESULT_16 = 16,
GRUNT_RESULT_17 = 17,
GRUNT_RESULT_18 = 18,
GRUNT_RESULT_19 = 19,
GRUNT_RESULT_20 = 20,
GRUNT_RESULT_21 = 21,
GRUNT_RESULT_22 = 22,
GRUNT_RESULT_23 = 23,
GRUNT_RESULT_24 = 24,
GRUNT_RESULT_25 = 25,
GRUNT_RESULT_26 = 26,
GRUNT_RESULT_27 = 27,
GRUNT_RESULT_28 = 28,
GRUNT_RESULT_29 = 29,
GRUNT_RESULT_30 = 30,
GRUNT_RESULT_31 = 31,
GRUNT_RESULT_32 = 32,
SUCCESS = 0,
GRUNT_RESULT_1 = 1,
GRUNT_RESULT_2 = 2,
BANNED = 3,
GRUNT_RESULT_4 = 4,
GRUNT_RESULT_5 = 5,
ALREADYONLINE = 6,
NOTIME = 7,
DBBUSY = 8,
BADVERSION = 9,
DOWNLOADFILE = 10,
GRUNT_RESULT_11 = 11,
SUSPENDED = 12,
GRUNT_RESULT_13 = 13,
SUCCESS_SURVEY = 14,
PARENTALCONTROL = 15,
LOCKED_ENFORCED = 16,
TRIAL_EXPIRED = 17,
ACCOUNT_CONVERTED = 18,
GRUNT_RESULT_19 = 19,
GRUNT_RESULT_20 = 20,
GRUNT_RESULT_21 = 21,
CHARGEBACK = 22,
IGR_WITHOUT_BNET = 23,
GAME_ACCOUNT_LOCKED = 24,
UNLOCKABLE_LOCK = 25,
GRUNT_RESULT_26 = 26,
GRUNT_RESULT_27 = 27,
GRUNT_RESULT_28 = 28,
GRUNT_RESULT_29 = 29,
GRUNT_RESULT_30 = 30,
GRUNT_RESULT_31 = 31,
CONVERSION_REQUIRED = 32,
GRUNT_RESULT_LAST,
DISCONNECTED = 255
};
extern const char* g_LoginResultStringNames[];