|
game_launcher 1.1.0
Modern Linux game launcher with Steam / Proton / Wine integration
|
Configuration for how to launch and run a game. More...
#include <game.h>
Public Member Functions | |
| GameRunnerConfig () | |
| Constructor with sensible defaults. | |
Public Attributes | |
| std::string | arguments |
| Command line arguments to pass to game. | |
| bool | autoDetectSync |
| Auto-detect best sync method (default: true). | |
| bool | enableDetailedLogging |
| Enable detailed Wine/Proton logging. | |
| bool | enableFsync |
| Enable Fsync (kernel 5.16+, best performance). | |
| bool | enableGameMode |
| Enable GameMode CPU governor optimization. | |
| bool | enableGamePerformance |
| Enable game-performance wrapper (CachyOS). | |
| bool | enableGamescope |
| Enable Gamescope compositor. | |
| bool | enableMangoHud |
| Enable MangoHud performance overlay. | |
| bool | enableVkBasalt |
| Enable VkBasalt shader injection. | |
| std::map< std::string, std::string > | environmentVariables |
| Environment variables to set before launching (KEY=VALUE pairs). | |
| std::vector< std::string > | excludeProcesses |
| Processes to exclude when tracking launcher child processes These are helper processes that should not be considered "the game" Example: "Agent.exe", "Battle.net Helper.exe". | |
| std::string | executablePath |
| Full path to game executable. | |
| bool | gamescopeBorderless |
| Borderless window mode. | |
| bool | gamescopeEnableFSR |
| Enable AMD FSR upscaling. | |
| bool | gamescopeEnableHDR |
| Enable HDR output. | |
| bool | gamescopeEnableITM |
| Enable HDR inverse tone mapping for SDR games. | |
| bool | gamescopeEnableVRR |
| Enable Variable Refresh Rate. | |
| bool | gamescopeForceGrabCursor |
| Force cursor grab (useful for some games). | |
| int | gamescopeFSRSharpness |
| FSR sharpness (0-20, 0 = max sharp). | |
| bool | gamescopeFullscreen |
| Run in fullscreen mode. | |
| int | gamescopeHeight |
| Gamescope output height (0 = native). | |
| bool | gamescopeIntegerScaling |
| Enable integer scaling filter. | |
| int | gamescopeInternalHeight |
| Internal render height for FSR upscaling (0 = native). | |
| int | gamescopeInternalWidth |
| Internal render width for FSR upscaling (0 = native). | |
| int | gamescopeITMSDRNits |
| ITM SDR nits reference (0 = use default). | |
| int | gamescopeRefreshRate |
| Refresh rate limit (0 = no limit). | |
| int | gamescopeWidth |
| Gamescope output width (0 = native). | |
| std::string | mangoHudConfigFile |
| Per-game MangoHud config file path (MANGOHUD_CONFIGFILE). | |
| std::string | protonVersion |
| Proton version (e.g., "proton-cachyos-slr"). | |
| std::string | runnerType |
| Runner type: "wine", "proton", "native", etc. | |
| std::string | runnerVersion |
| Runner version: "wine-8.0", "proton-8.0-5", etc. | |
| std::string | unknownJsonExtras |
| Round-trip-preservation buffer. | |
| bool | useSteamDefaults = true |
| For Steam games: if true, don't sync custom env vars/wrappers to Steam's VDF files. | |
| bool | useSteamLaunch = false |
| For Steam games: if true, launch via "steam -applaunch" instead of direct Proton. | |
| bool | useVirtualDesktop |
| Launch game in Wine virtual desktop. | |
| int | virtualDesktopHeight |
| Virtual desktop height in pixels. | |
| int | virtualDesktopWidth |
| Virtual desktop width in pixels. | |
| std::string | wineDLL |
| DLL overrides (e.g., "d3d11=native,builtin"). | |
| std::string | winePath |
| Custom Wine binary path (e.g., from Lutris config). | |
| std::string | winePrefix |
| WINEPREFIX path (Wine install location). | |
| std::string | workingDirectory |
| Working directory for game execution. | |
Configuration for how to launch and run a game.
Contains all settings needed to properly execute a game, including executable path, working directory, environment variables, and platform-specific settings (Wine/Proton configuration).
|
inline |
Constructor with sensible defaults.
Initializes Wine/Proton settings to common defaults:
Definition at line 242 of file game.h.
References autoDetectSync, enableDetailedLogging, enableFsync, enableGameMode, enableGamePerformance, enableGamescope, enableMangoHud, enableVkBasalt, gamescopeBorderless, gamescopeEnableFSR, gamescopeEnableHDR, gamescopeEnableITM, gamescopeEnableVRR, gamescopeForceGrabCursor, gamescopeFSRSharpness, gamescopeFullscreen, gamescopeHeight, gamescopeIntegerScaling, gamescopeInternalHeight, gamescopeInternalWidth, gamescopeITMSDRNits, gamescopeRefreshRate, gamescopeWidth, useVirtualDesktop, virtualDesktopHeight, and virtualDesktopWidth.
| std::string GameRunnerConfig::arguments |
Command line arguments to pass to game.
Definition at line 143 of file game.h.
Referenced by GameSuggestionService::applySuggestions(), SteamLaunchBuilder::buildLaunchCommand(), GameProcessManager::launchGame(), ScannedGame::toGame(), and SteamGame::toGame().
| bool GameRunnerConfig::autoDetectSync |
Auto-detect best sync method (default: true).
Definition at line 216 of file game.h.
Referenced by GameRunnerConfig(), and anonymous_namespace{game_process.cpp}::addSyncEnvironment().
| bool GameRunnerConfig::enableDetailedLogging |
Enable detailed Wine/Proton logging.
Definition at line 222 of file game.h.
Referenced by GameRunnerConfig().
| bool GameRunnerConfig::enableFsync |
Enable Fsync (kernel 5.16+, best performance).
Definition at line 215 of file game.h.
Referenced by GameRunnerConfig(), and anonymous_namespace{game_process.cpp}::addSyncEnvironment().
| bool GameRunnerConfig::enableGameMode |
Enable GameMode CPU governor optimization.
Definition at line 186 of file game.h.
Referenced by GameRunnerConfig(), GameActionFactory::addQuickSettingsSubmenu(), and anonymous_namespace{game_process.cpp}::buildWrapperChain().
| bool GameRunnerConfig::enableGamePerformance |
Enable game-performance wrapper (CachyOS).
Definition at line 187 of file game.h.
Referenced by GameRunnerConfig(), and anonymous_namespace{game_process.cpp}::buildWrapperChain().
| bool GameRunnerConfig::enableGamescope |
Enable Gamescope compositor.
Definition at line 194 of file game.h.
Referenced by GameRunnerConfig(), GameActionFactory::addQuickSettingsSubmenu(), anonymous_namespace{game_process.cpp}::buildGamescopeWrapper(), and anonymous_namespace{game_process.cpp}::buildWrapperChain().
| bool GameRunnerConfig::enableMangoHud |
Enable MangoHud performance overlay.
Definition at line 184 of file game.h.
Referenced by GameRunnerConfig(), GameActionFactory::addQuickSettingsSubmenu(), anonymous_namespace{game_process.cpp}::buildGamescopeWrapper(), and anonymous_namespace{game_process.cpp}::buildWrapperChain().
| bool GameRunnerConfig::enableVkBasalt |
Enable VkBasalt shader injection.
Definition at line 188 of file game.h.
Referenced by GameRunnerConfig(), GameActionFactory::addQuickSettingsSubmenu(), and anonymous_namespace{game_process.cpp}::buildWrapperChain().
| std::map<std::string, std::string> GameRunnerConfig::environmentVariables |
Environment variables to set before launching (KEY=VALUE pairs).
Definition at line 146 of file game.h.
Referenced by GameSuggestionService::applySuggestions(), GameProcessManager::launchGame(), ScannedGame::toGame(), and SteamGame::toGame().
| std::vector<std::string> GameRunnerConfig::excludeProcesses |
Processes to exclude when tracking launcher child processes These are helper processes that should not be considered "the game" Example: "Agent.exe", "Battle.net Helper.exe".
Definition at line 175 of file game.h.
Referenced by ScannedGame::toGame().
| std::string GameRunnerConfig::executablePath |
Full path to game executable.
Definition at line 141 of file game.h.
Referenced by anonymous_namespace{game_process.cpp}::addApplicationSpecificFixes(), GameLibrary::addGame(), GameActionFactory::addOpenFolderAction(), SteamLaunchBuilder::buildLaunchCommand(), MainWindow::dropEvent(), GameProcessManager::launchGame(), ShortcutsController::registerPaletteCommands(), GOGIntegration::toGame(), LegendaryIntegration::toGame(), ScannedGame::toGame(), and SteamGame::toGame().
| bool GameRunnerConfig::gamescopeBorderless |
Borderless window mode.
Definition at line 201 of file game.h.
Referenced by GameRunnerConfig(), and anonymous_namespace{game_process.cpp}::buildGamescopeWrapper().
| bool GameRunnerConfig::gamescopeEnableFSR |
Enable AMD FSR upscaling.
Definition at line 202 of file game.h.
Referenced by GameRunnerConfig(), and anonymous_namespace{game_process.cpp}::buildGamescopeWrapper().
| bool GameRunnerConfig::gamescopeEnableHDR |
Enable HDR output.
Definition at line 205 of file game.h.
Referenced by GameRunnerConfig(), and anonymous_namespace{game_process.cpp}::buildGamescopeWrapper().
| bool GameRunnerConfig::gamescopeEnableITM |
Enable HDR inverse tone mapping for SDR games.
Definition at line 206 of file game.h.
Referenced by GameRunnerConfig(), and anonymous_namespace{game_process.cpp}::buildGamescopeWrapper().
| bool GameRunnerConfig::gamescopeEnableVRR |
Enable Variable Refresh Rate.
Definition at line 204 of file game.h.
Referenced by GameRunnerConfig(), and anonymous_namespace{game_process.cpp}::buildGamescopeWrapper().
| bool GameRunnerConfig::gamescopeForceGrabCursor |
Force cursor grab (useful for some games).
Definition at line 209 of file game.h.
Referenced by GameRunnerConfig(), and anonymous_namespace{game_process.cpp}::buildGamescopeWrapper().
| int GameRunnerConfig::gamescopeFSRSharpness |
FSR sharpness (0-20, 0 = max sharp).
Definition at line 203 of file game.h.
Referenced by GameRunnerConfig(), and anonymous_namespace{game_process.cpp}::buildGamescopeWrapper().
| bool GameRunnerConfig::gamescopeFullscreen |
Run in fullscreen mode.
Definition at line 200 of file game.h.
Referenced by GameRunnerConfig(), and anonymous_namespace{game_process.cpp}::buildGamescopeWrapper().
| int GameRunnerConfig::gamescopeHeight |
Gamescope output height (0 = native).
Definition at line 196 of file game.h.
Referenced by GameRunnerConfig(), and anonymous_namespace{game_process.cpp}::buildGamescopeWrapper().
| bool GameRunnerConfig::gamescopeIntegerScaling |
Enable integer scaling filter.
Definition at line 208 of file game.h.
Referenced by GameRunnerConfig(), and anonymous_namespace{game_process.cpp}::buildGamescopeWrapper().
| int GameRunnerConfig::gamescopeInternalHeight |
Internal render height for FSR upscaling (0 = native).
Definition at line 198 of file game.h.
Referenced by GameRunnerConfig(), and anonymous_namespace{game_process.cpp}::buildGamescopeWrapper().
| int GameRunnerConfig::gamescopeInternalWidth |
Internal render width for FSR upscaling (0 = native).
Definition at line 197 of file game.h.
Referenced by GameRunnerConfig(), and anonymous_namespace{game_process.cpp}::buildGamescopeWrapper().
| int GameRunnerConfig::gamescopeITMSDRNits |
ITM SDR nits reference (0 = use default).
Definition at line 207 of file game.h.
Referenced by GameRunnerConfig(), and anonymous_namespace{game_process.cpp}::buildGamescopeWrapper().
| int GameRunnerConfig::gamescopeRefreshRate |
Refresh rate limit (0 = no limit).
Definition at line 199 of file game.h.
Referenced by GameRunnerConfig(), and anonymous_namespace{game_process.cpp}::buildGamescopeWrapper().
| int GameRunnerConfig::gamescopeWidth |
Gamescope output width (0 = native).
Definition at line 195 of file game.h.
Referenced by GameRunnerConfig(), and anonymous_namespace{game_process.cpp}::buildGamescopeWrapper().
| std::string GameRunnerConfig::mangoHudConfigFile |
Per-game MangoHud config file path (MANGOHUD_CONFIGFILE).
Definition at line 185 of file game.h.
Referenced by anonymous_namespace{game_process.cpp}::buildWrapperChain().
| std::string GameRunnerConfig::protonVersion |
Proton version (e.g., "proton-cachyos-slr").
Definition at line 170 of file game.h.
Referenced by GameSuggestionService::applySuggestions(), GameProcessManager::launchGame(), ScannedGame::toGame(), and SteamGame::toGame().
| std::string GameRunnerConfig::runnerType |
Runner type: "wine", "proton", "native", etc.
Definition at line 139 of file game.h.
Referenced by ScannedGame::toGame(), and SteamGame::toGame().
| std::string GameRunnerConfig::runnerVersion |
Runner version: "wine-8.0", "proton-8.0-5", etc.
Definition at line 140 of file game.h.
Referenced by GameSuggestionService::applySuggestions(), ScannedGame::toGame(), and SteamGame::toGame().
| std::string GameRunnerConfig::unknownJsonExtras |
Round-trip-preservation buffer.
Holds any JSON keys present in the on-disk runner_config blob that this build doesn't recognise (e.g. fields written by a newer launcher version). Stored as a serialised JSON object string so game.h stays lightweight (no nlohmann include). On serialise, the unknown fields are merged back into the output alongside the typed fields. Empty by default.
| bool GameRunnerConfig::useSteamDefaults = true |
For Steam games: if true, don't sync custom env vars/wrappers to Steam's VDF files.
Default is true — Steam manages its own launch options. Set to false only when the user explicitly configures custom wrappers that need VDF sync (advanced).
Definition at line 155 of file game.h.
Referenced by SteamGame::toGame().
| bool GameRunnerConfig::useSteamLaunch = false |
For Steam games: if true, launch via "steam -applaunch" instead of direct Proton.
This is a fallback for games with aggressive DRM or those that require Steam's runtime to function (e.g., CEG-protected titles, games using Steamworks networking). Default is false — direct Proton launch gives full control over wrappers/env vars.
Definition at line 161 of file game.h.
Referenced by GameProcessManager::launchGame(), and SteamGame::toGame().
| bool GameRunnerConfig::useVirtualDesktop |
Launch game in Wine virtual desktop.
Definition at line 176 of file game.h.
Referenced by GameRunnerConfig().
| int GameRunnerConfig::virtualDesktopHeight |
Virtual desktop height in pixels.
Definition at line 178 of file game.h.
Referenced by GameRunnerConfig().
| int GameRunnerConfig::virtualDesktopWidth |
Virtual desktop width in pixels.
Definition at line 177 of file game.h.
Referenced by GameRunnerConfig().
| std::string GameRunnerConfig::wineDLL |
DLL overrides (e.g., "d3d11=native,builtin").
Definition at line 169 of file game.h.
Referenced by GameSuggestionService::applySuggestions(), and ScannedGame::toGame().
| std::string GameRunnerConfig::winePath |
| std::string GameRunnerConfig::winePrefix |
WINEPREFIX path (Wine install location).
Definition at line 167 of file game.h.
Referenced by ScannedGame::toGame().
| std::string GameRunnerConfig::workingDirectory |
Working directory for game execution.
Definition at line 142 of file game.h.
Referenced by MainWindow::dropEvent(), ScannedGame::toGame(), and SteamGame::toGame().