From 51c939b2106ccfe36a50ae3bfe08dfe3d4d6f9bb Mon Sep 17 00:00:00 2001 From: David Capello Date: Fri, 26 Feb 2016 20:19:37 -0300 Subject: [PATCH] Find the Steam DLL in the app directory --- src/steam/steam.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/steam/steam.cpp b/src/steam/steam.cpp index 89ebd158f..f8493738e 100644 --- a/src/steam/steam.cpp +++ b/src/steam/steam.cpp @@ -11,6 +11,8 @@ #include "steam/steam.h" #include "base/dll.h" +#include "base/fs.h" +#include "base/path.h" #include "base/string.h" namespace steam { @@ -33,7 +35,9 @@ typedef void (*SteamAPI_Shutdown_Func)(); class SteamAPI::Impl { public: Impl() { - m_steamLib = base::load_dll(STEAM_API_DLL_FILENAME); + m_steamLib = base::load_dll( + base::join_path(base::get_file_path(base::get_app_path()), + STEAM_API_DLL_FILENAME)); if (!m_steamLib) return;