From f009b00486bc8669f91f59027c3975fce777b45b Mon Sep 17 00:00:00 2001 From: kervala Date: Sun, 28 Feb 2016 18:56:19 +0100 Subject: [PATCH] Changed: Try to load Steam DLL using absolute path --- code/ryzom/client/src/steam_client.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/code/ryzom/client/src/steam_client.cpp b/code/ryzom/client/src/steam_client.cpp index 5e954a94b..03ed261d0 100644 --- a/code/ryzom/client/src/steam_client.cpp +++ b/code/ryzom/client/src/steam_client.cpp @@ -22,6 +22,8 @@ #include "steam_client.h" +#include "nel/misc/cmd_args.h" + #include // prototypes definitions for Steam API functions we'll call @@ -148,6 +150,8 @@ protected: func_t m_Func; }; +extern NLMISC::CCmdArgs Args; + // listener called by Steam when AuthSessionTicket is available class CAuthSessionTicketListener { @@ -297,7 +301,7 @@ bool CSteamClient::init() #endif // try to load library - _Handle = NLMISC::nlLoadLibrary(filename); + _Handle = NLMISC::nlLoadLibrary(Args.getProgramPath() + filename); if (!_Handle) {