From a0337e1aa59d81e22ecdbef39a837e3f3f2ccf6d Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Wed, 11 Oct 2023 12:59:25 -0400 Subject: [PATCH] Fix compilation without Steamworks --- launcher/src/steamapi.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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)