1
Fork 0
mirror of https://github.com/redstrate/Astra.git synced 2025-06-08 15:07:45 +00:00

Fix compilation without Steamworks

This commit is contained in:
Joshua Goins 2023-10-11 12:59:25 -04:00
parent fd19641e72
commit a0337e1aa5

View file

@ -14,19 +14,19 @@ SteamAPI::SteamAPI(LauncherCore &core, QObject *parent)
, core(core)
{
#ifdef ENABLE_STEAM
if (core.isSteam()) {
qputenv("SteamAppId", "39210");
qputenv("SteamGameId", "39210");
if (!SteamAPI_Init())
qDebug() << "Failed to initialize steam api!";
}
#endif
}
SteamAPI::~SteamAPI()
{
#ifdef ENABLE_STEAM
SteamAPI_Shutdown();
#endif
}
void SteamAPI::setLauncherMode(bool isLauncher)