mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 03:02:30 +00:00
feat(glue): persist login state in glue manager
This commit is contained in:
parent
85a9f8bde8
commit
a0030c85b2
5 changed files with 29 additions and 4 deletions
|
|
@ -41,6 +41,7 @@ unsigned char InterfaceKey[256] = {
|
|||
int32_t CGlueMgr::m_acceptedEULA = 1; // TODO
|
||||
int32_t CGlueMgr::m_acceptedTerminationWithoutNotice;
|
||||
int32_t CGlueMgr::m_acceptedTOS = 1; // TODO
|
||||
int32_t CGlueMgr::m_accountMsgAvailable;
|
||||
char CGlueMgr::m_accountName[1280];
|
||||
float CGlueMgr::m_aspect;
|
||||
bool CGlueMgr::m_authenticated;
|
||||
|
|
@ -360,6 +361,22 @@ void CGlueMgr::Resume() {
|
|||
// }
|
||||
}
|
||||
|
||||
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);
|
||||
|
||||
if (flags & 0x1) {
|
||||
CGlueMgr::m_accountMsgAvailable = 1;
|
||||
}
|
||||
|
||||
if (state == LOGIN_STATE_AUTHENTICATED) {
|
||||
CGlueMgr::m_authenticated = true;
|
||||
}
|
||||
|
||||
CGlueMgr::m_loginState = state;
|
||||
CGlueMgr::m_loginResult = result;
|
||||
}
|
||||
|
||||
void CGlueMgr::SetScreen(const char* screen) {
|
||||
FrameScript_SignalEvent(0, "%s", screen);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue