From 264e8be1a2c701c3d06d759e8f22468b5d4f0be2 Mon Sep 17 00:00:00 2001 From: kervala Date: Sat, 19 Mar 2016 18:29:14 +0100 Subject: [PATCH] Changed: Try to load Steam DLL without path if fails --HG-- branch : compatibility-develop --- code/ryzom/client/src/steam_client.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/code/ryzom/client/src/steam_client.cpp b/code/ryzom/client/src/steam_client.cpp index 6e9521eea..5a37c9816 100644 --- a/code/ryzom/client/src/steam_client.cpp +++ b/code/ryzom/client/src/steam_client.cpp @@ -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