diff --git a/launcher/src/steamapi.cpp b/launcher/src/steamapi.cpp index 03e8fe3..5a2e786 100644 --- a/launcher/src/steamapi.cpp +++ b/launcher/src/steamapi.cpp @@ -14,19 +14,19 @@ SteamAPI::SteamAPI(LauncherCore &core, QObject *parent) , core(core) { #ifdef ENABLE_STEAM - if (core.isSteam()) { - qputenv("SteamAppId", "39210"); - qputenv("SteamGameId", "39210"); + qputenv("SteamAppId", "39210"); + qputenv("SteamGameId", "39210"); - if (!SteamAPI_Init()) - qDebug() << "Failed to initialize steam api!"; - } + if (!SteamAPI_Init()) + qDebug() << "Failed to initialize steam api!"; #endif } SteamAPI::~SteamAPI() { +#ifdef ENABLE_STEAM SteamAPI_Shutdown(); +#endif } void SteamAPI::setLauncherMode(bool isLauncher)