1
Fork 0
mirror of https://github.com/redstrate/Astra.git synced 2025-04-20 19:57:45 +00:00
astra/launcher/core/src/steamapi.cpp

20 lines
395 B
C++
Raw Normal View History

#include "steamapi.h"
#include "launchercore.h"
2022-09-06 10:54:34 -04:00
#include <QtGlobal>
2022-09-05 18:03:59 -04:00
#ifdef ENABLE_STEAM
#include <steam/steam_api.h>
#endif
SteamAPI::SteamAPI(LauncherCore& core) {
2022-09-05 18:03:59 -04:00
#ifdef ENABLE_STEAM
if(core.isSteam) {
2022-09-06 10:54:34 -04:00
qputenv("SteamAppId", "39210");
qputenv("SteamGameId", "39210");
if(!SteamAPI_Init())
qDebug() << "Failed to initialize steam api!";
}
#endif
}