mirror of
https://github.com/redstrate/Astra.git
synced 2025-04-20 19:57:45 +00:00
Unify named constants for features too
This commit is contained in:
parent
8fbe1b6514
commit
b15473ddf0
5 changed files with 9 additions and 8 deletions
|
@ -77,9 +77,9 @@ if (ENABLE_WATCHDOG)
|
|||
endif ()
|
||||
|
||||
if(ENABLE_GAMEMODE)
|
||||
target_compile_definitions(astra_core PUBLIC USE_GAMEMODE)
|
||||
target_compile_definitions(astra_core PUBLIC ENABLE_GAMEMODE)
|
||||
endif()
|
||||
|
||||
if(ENABLE_STEAM)
|
||||
target_compile_definitions(astra_core PUBLIC USE_STEAM)
|
||||
target_compile_definitions(astra_core PUBLIC ENABLE_STEAM)
|
||||
endif()
|
|
@ -27,7 +27,8 @@ enum class WineType {
|
|||
System,
|
||||
Custom,
|
||||
Builtin, // macos only
|
||||
XIVOnMac // macos only
|
||||
XIVOnMac, // macos only
|
||||
Proton // steam proton, only available when launched via Steam
|
||||
};
|
||||
|
||||
enum class DalamudChannel {
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
#include <qt5keychain/keychain.h>
|
||||
#include <cotp.h>
|
||||
|
||||
#ifdef USE_GAMEMODE
|
||||
#ifdef ENABLE_GAMEMODE
|
||||
#include <gamemode_client.h>
|
||||
#endif
|
||||
|
||||
|
@ -212,7 +212,7 @@ void LauncherCore::launchExecutable(
|
|||
}
|
||||
#endif
|
||||
|
||||
#if USE_GAMEMODE
|
||||
#if ENABLE_GAMEMODE
|
||||
if(isGame && profile.useGamemode) {
|
||||
gamemode_request_start();
|
||||
}
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
#include "steamapi.h"
|
||||
|
||||
#ifdef USE_STEAM
|
||||
#ifdef ENABLE_STEAM
|
||||
#include <steam/steam_api.h>
|
||||
#endif
|
||||
|
||||
SteamAPI::SteamAPI() {
|
||||
#ifdef USE_STEAM
|
||||
#ifdef ENABLE_STEAM
|
||||
SteamAPI_Init();
|
||||
#endif
|
||||
}
|
|
@ -234,7 +234,7 @@ void SettingsWindow::reloadControls() {
|
|||
useGamescope->setChecked(profile.useGamescope);
|
||||
useGamemode->setChecked(profile.useGamemode);
|
||||
|
||||
#ifndef USE_GAMEMODE
|
||||
#ifndef ENABLE_GAMEMODE
|
||||
useGameMode->setEnabled(false);
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue