mirror of
https://github.com/aseprite/aseprite.git
synced 2024-12-28 15:20:15 +00:00
Find the Steam DLL in the app directory
This commit is contained in:
parent
1c8d89c31f
commit
51c939b210
@ -11,6 +11,8 @@
|
|||||||
#include "steam/steam.h"
|
#include "steam/steam.h"
|
||||||
|
|
||||||
#include "base/dll.h"
|
#include "base/dll.h"
|
||||||
|
#include "base/fs.h"
|
||||||
|
#include "base/path.h"
|
||||||
#include "base/string.h"
|
#include "base/string.h"
|
||||||
|
|
||||||
namespace steam {
|
namespace steam {
|
||||||
@ -33,7 +35,9 @@ typedef void (*SteamAPI_Shutdown_Func)();
|
|||||||
class SteamAPI::Impl {
|
class SteamAPI::Impl {
|
||||||
public:
|
public:
|
||||||
Impl() {
|
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)
|
if (!m_steamLib)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user