thunderbrew/src/net/login/LoginResponse.cpp

17 lines
581 B
C++
Raw Normal View History

2023-01-09 07:49:49 -06:00
#include "net/login/LoginResponse.hpp"
#include "net/grunt/Grunt.hpp"
#include <storm/String.hpp>
2023-01-09 07:49:49 -06:00
void LoginResponse::UpdateLoginStatus(LOGIN_STATE state, LOGIN_RESULT result, const char* addrStr, uint16_t flags) {
2023-01-09 07:49:49 -06:00
this->m_loginState = state;
this->m_loginResult = result;
char stateStr[64];
SStrCopy(stateStr, Grunt::g_LoginStateStringNames[state], sizeof(stateStr));
2023-01-09 07:49:49 -06:00
char resultStr[64];
SStrCopy(resultStr, Grunt::g_LoginResultStringNames[result], sizeof(resultStr));
this->LoginServerStatus(state, result, addrStr, stateStr, resultStr, flags);
2023-01-09 07:49:49 -06:00
}