Changed: Try to load Steam DLL without path if fails

--HG--
branch : compatibility-develop
This commit is contained in:
kervala 2016-03-19 18:29:14 +01:00
parent 833976be5b
commit 264e8be1a2

View file

@ -302,13 +302,19 @@ bool CSteamClient::init()
filename = "libsteam_api.so";
#endif
// try to load library
// try to load library with absolute path
_Handle = NLMISC::nlLoadLibrary(Args.getProgramPath() + filename);
if (!_Handle)
{
nlwarning("Unable to load Steam client");
return false;
// try to load library with relative path (will search in system paths)
_Handle = NLMISC::nlLoadLibrary(filename);
if (!_Handle)
{
nlwarning("Unable to load Steam client");
return false;
}
}
// load Steam functions