mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-27 01:06:19 +00:00
Changed: Try to load Steam DLL using absolute path
This commit is contained in:
parent
9e0918ad09
commit
f009b00486
1 changed files with 5 additions and 1 deletions
|
@ -22,6 +22,8 @@
|
||||||
|
|
||||||
#include "steam_client.h"
|
#include "steam_client.h"
|
||||||
|
|
||||||
|
#include "nel/misc/cmd_args.h"
|
||||||
|
|
||||||
#include <steam_api.h>
|
#include <steam_api.h>
|
||||||
|
|
||||||
// prototypes definitions for Steam API functions we'll call
|
// prototypes definitions for Steam API functions we'll call
|
||||||
|
@ -148,6 +150,8 @@ protected:
|
||||||
func_t m_Func;
|
func_t m_Func;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
extern NLMISC::CCmdArgs Args;
|
||||||
|
|
||||||
// listener called by Steam when AuthSessionTicket is available
|
// listener called by Steam when AuthSessionTicket is available
|
||||||
class CAuthSessionTicketListener
|
class CAuthSessionTicketListener
|
||||||
{
|
{
|
||||||
|
@ -297,7 +301,7 @@ bool CSteamClient::init()
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// try to load library
|
// try to load library
|
||||||
_Handle = NLMISC::nlLoadLibrary(filename);
|
_Handle = NLMISC::nlLoadLibrary(Args.getProgramPath() + filename);
|
||||||
|
|
||||||
if (!_Handle)
|
if (!_Handle)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue