mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 16:22:45 +03:00
feat(glue): pass login guid through s_loginGUID in CGlueMgr::PollEnterWorld
This commit is contained in:
parent
b88f694285
commit
8d5310c779
@ -86,6 +86,12 @@ int32_t CGlueMgr::m_showedDisconnect;
|
|||||||
CSimpleTop* CGlueMgr::m_simpleTop;
|
CSimpleTop* CGlueMgr::m_simpleTop;
|
||||||
int32_t CGlueMgr::m_suspended;
|
int32_t CGlueMgr::m_suspended;
|
||||||
|
|
||||||
|
#if defined(WHOA_SYSTEM_WIN)
|
||||||
|
static thread_local uint64_t s_loginGUID;
|
||||||
|
#else
|
||||||
|
static uint64_t s_loginGUID;
|
||||||
|
#endif
|
||||||
|
|
||||||
struct URLERROR {
|
struct URLERROR {
|
||||||
int32_t error;
|
int32_t error;
|
||||||
char url[32];
|
char url[32];
|
||||||
@ -779,8 +785,7 @@ void CGlueMgr::PollEnterWorld() {
|
|||||||
|
|
||||||
SI2::StopGlueMusic(3.0f);
|
SI2::StopGlueMusic(3.0f);
|
||||||
|
|
||||||
// TODO TLS shenanigans with guid
|
ClientServices::Connection()->CharacterLogin(s_loginGUID, 0);
|
||||||
ClientServices::Connection()->CharacterLogin(CGlueMgr::m_characterInfo->m_info.guid, 0);
|
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -788,7 +793,8 @@ void CGlueMgr::PollEnterWorld() {
|
|||||||
uint32_t mapId = CGlueMgr::m_characterInfo->m_info.mapID;
|
uint32_t mapId = CGlueMgr::m_characterInfo->m_info.mapID;
|
||||||
C3Vector position = CGlueMgr::m_characterInfo->m_info.position;
|
C3Vector position = CGlueMgr::m_characterInfo->m_info.position;
|
||||||
|
|
||||||
// TODO TLS shenanigans with guid
|
s_loginGUID = CGlueMgr::m_characterInfo->m_info.guid;
|
||||||
|
|
||||||
// TODO first login logic (play intro M2?)
|
// TODO first login logic (play intro M2?)
|
||||||
|
|
||||||
CGlueMgr::Suspend();
|
CGlueMgr::Suspend();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user