mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-23 07:36:16 +00:00
Changed: Try to load Steam DLL without path if fails
This commit is contained in:
parent
dc52b3e24f
commit
5670c0cd2b
1 changed files with 9 additions and 3 deletions
|
@ -302,13 +302,19 @@ bool CSteamClient::init()
|
||||||
filename = "libsteam_api.so";
|
filename = "libsteam_api.so";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// try to load library
|
// try to load library with absolute path
|
||||||
_Handle = NLMISC::nlLoadLibrary(Args.getProgramPath() + filename);
|
_Handle = NLMISC::nlLoadLibrary(Args.getProgramPath() + filename);
|
||||||
|
|
||||||
if (!_Handle)
|
if (!_Handle)
|
||||||
{
|
{
|
||||||
nlwarning("Unable to load Steam client");
|
// try to load library with relative path (will search in system paths)
|
||||||
return false;
|
_Handle = NLMISC::nlLoadLibrary(filename);
|
||||||
|
|
||||||
|
if (!_Handle)
|
||||||
|
{
|
||||||
|
nlwarning("Unable to load Steam client");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// load Steam functions
|
// load Steam functions
|
||||||
|
|
Loading…
Reference in a new issue