Find the Steam DLL in the app directory

This commit is contained in:
David Capello 2016-02-26 20:19:37 -03:00
parent 1c8d89c31f
commit 51c939b210

View File

@ -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;