From 19fadb0389ea23c78f92c2f63c47275f22633380 Mon Sep 17 00:00:00 2001 From: Dominik Louven Date: Tue, 27 Nov 2018 20:08:46 +0100 Subject: [PATCH] Fix steam lib paths for macOS --- ScreenPlay/ScreenPlay.pro | 12 +++++++----- ScreenPlay/src/steamworkshop.cpp | 1 + 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/ScreenPlay/ScreenPlay.pro b/ScreenPlay/ScreenPlay.pro index a6343aca..f5c27158 100644 --- a/ScreenPlay/ScreenPlay.pro +++ b/ScreenPlay/ScreenPlay.pro @@ -135,16 +135,18 @@ macx: { LIBS += -L$$PWD/ThirdParty/steam/redistributable_bin/osx32/ -lsteam_api DEPENDPATH += $$PWD/ThirdParty/steam/redistributable_bin/osx32 - INCLUDEPATH += $$PWD/ThirdParty/steam/lib/osx32 - DEPENDPATH += $$PWD/ThirdParty/steam/lib/osx32s + INCLUDEPATH += $$PWD/ThirdParty/steam/ + DEPENDPATH += $$PWD/ThirdParty/steam/ LIBS += -L$$PWD/ThirdParty/steam/lib/osx32/ -lsdkencryptedappticket - install_it.files += ThirdParty\steam\redistributable_bin\osx32\libsteam_api.so - - steam_data.files = steam_appid.txt + steam_data.files += steam_appid.txt steam_data.path = Contents/MacOS + steam_data_lib.files += $$PWD/ThirdParty/steam/redistributable_bin/osx32/libsteam_api.dylib + steam_data_lib.path = Contents/MacOS/lib QMAKE_BUNDLE_DATA += steam_data + QMAKE_BUNDLE_DATA += steam_data_lib + } DISTFILES += \ diff --git a/ScreenPlay/src/steamworkshop.cpp b/ScreenPlay/src/steamworkshop.cpp index 3d8abb7b..b2ba5778 100644 --- a/ScreenPlay/src/steamworkshop.cpp +++ b/ScreenPlay/src/steamworkshop.cpp @@ -17,6 +17,7 @@ void SteamWorkshop::initSteam() m_steamErrorRestart = true; } + //IF THE FAMILY SHARING IS ENABLED THIS WILL FAIL ! #13 if (!SteamAPI_Init()) { qWarning() << "Could not init steam sdk!"; m_steamErrorAPIInit = true;