Changed: Load Steam DLL just after initializing logs and before loading config
This commit is contained in:
parent
45f2100a03
commit
ba71497344
1 changed files with 6 additions and 7 deletions
|
@ -274,6 +274,12 @@ int main(int argc, char **argv)
|
||||||
// initialize log
|
// initialize log
|
||||||
initLog();
|
initLog();
|
||||||
|
|
||||||
|
#ifdef RZ_USE_STEAM
|
||||||
|
CSteamClient steamClient;
|
||||||
|
|
||||||
|
if (steamClient.init())
|
||||||
|
LoginCustomParameters = "&steam_auth_session_ticket=" + steamClient.getAuthSessionTicket();
|
||||||
|
#endif
|
||||||
|
|
||||||
// initialize patch manager and set the ryzom full path, before it's used
|
// initialize patch manager and set the ryzom full path, before it's used
|
||||||
CPatchManager *pPM = CPatchManager::getInstance();
|
CPatchManager *pPM = CPatchManager::getInstance();
|
||||||
|
@ -286,13 +292,6 @@ int main(int argc, char **argv)
|
||||||
prelogInit();
|
prelogInit();
|
||||||
RYZOM_CATCH("Pre-Login Init")
|
RYZOM_CATCH("Pre-Login Init")
|
||||||
|
|
||||||
#ifdef RZ_USE_STEAM
|
|
||||||
CSteamClient steamClient;
|
|
||||||
|
|
||||||
if (steamClient.init())
|
|
||||||
LoginCustomParameters = "&steam_auth_session_ticket=" + steamClient.getAuthSessionTicket();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// Log the client and choose from shard
|
// Log the client and choose from shard
|
||||||
RYZOM_TRY("Login")
|
RYZOM_TRY("Login")
|
||||||
if (!ClientCfg.Local && (ClientCfg.TestBrowser || ClientCfg.FSHost.empty()))
|
if (!ClientCfg.Local && (ClientCfg.TestBrowser || ClientCfg.FSHost.empty()))
|
||||||
|
|
Loading…
Reference in a new issue