Changed: Try to load Steam DLL using absolute path

This commit is contained in:
kervala 2016-02-28 18:56:19 +01:00
parent ea7463afc0
commit b44945edb6

View file

@ -22,6 +22,8 @@
#include "steam_client.h"
#include "nel/misc/cmd_args.h"
#include <steam_api.h>
// 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)
{