From 5670c0cd2bf7ac3b58ab862cf2c11f28842dc996 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 --- 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