From ba71497344f2c44d7263b03bc15f1ac17924efa8 Mon Sep 17 00:00:00 2001 From: kervala Date: Fri, 18 Mar 2016 22:21:01 +0100 Subject: [PATCH] Changed: Load Steam DLL just after initializing logs and before loading config --- code/ryzom/client/src/client.cpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/code/ryzom/client/src/client.cpp b/code/ryzom/client/src/client.cpp index 6abe442d3..9c504302c 100644 --- a/code/ryzom/client/src/client.cpp +++ b/code/ryzom/client/src/client.cpp @@ -274,6 +274,12 @@ int main(int argc, char **argv) // initialize log 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 CPatchManager *pPM = CPatchManager::getInstance(); @@ -286,13 +292,6 @@ int main(int argc, char **argv) prelogInit(); 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 RYZOM_TRY("Login") if (!ClientCfg.Local && (ClientCfg.TestBrowser || ClientCfg.FSHost.empty()))