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:
parent
fd19641e72
commit
a0337e1aa5
1 changed files with 6 additions and 6 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue