mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 03:02:30 +00:00
feat(client): handle successful authentication in ClientServices
This commit is contained in:
parent
9fe2e2e8ff
commit
5355b75768
10 changed files with 60 additions and 0 deletions
|
|
@ -250,6 +250,7 @@ void CGlueMgr::PollLoginServerLogin() {
|
|||
// CGlueMgr::DisplayLoginStatus();
|
||||
}
|
||||
|
||||
// Open new client connection after successful authentication
|
||||
if (CGlueMgr::m_authenticated) {
|
||||
CGlueMgr::m_idleState = IDLE_NONE;
|
||||
CGlueMgr::m_showedDisconnect = 0;
|
||||
|
|
@ -438,6 +439,11 @@ void CGlueMgr::Resume() {
|
|||
// }
|
||||
}
|
||||
|
||||
void CGlueMgr::SetCurrentAccount(const char* accountName) {
|
||||
SStrCopy(CGlueMgr::m_accountName, accountName, sizeof(CGlueMgr::m_accountName));
|
||||
SStrUpper(CGlueMgr::m_accountName);
|
||||
}
|
||||
|
||||
void CGlueMgr::SetLoginStateAndResult(LOGIN_STATE state, LOGIN_RESULT result, const char* addrStr, const char* stateStr, const char* resultStr, uint8_t flags) {
|
||||
// TODO
|
||||
// CGlueMgr::LogConnectionStatus("GRUNT: state: %s result: %s %s", a4);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue