game_launcher 1.1.0
Modern Linux game launcher with Steam / Proton / Wine integration
Loading...
Searching...
No Matches
GameRunnerConfig Struct Reference

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.

Detailed Description

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).

Definition at line 137 of file game.h.

Constructor & Destructor Documentation

◆ GameRunnerConfig()

GameRunnerConfig::GameRunnerConfig ( )
inline

Constructor with sensible defaults.

Initializes Wine/Proton settings to common defaults:

  • Virtual desktop disabled
  • 1920x1080 virtual desktop size (if enabled)
  • Gamescope disabled
  • Auto-detect sync enabled
  • Wrappers disabled by default

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.

Member Data Documentation

◆ arguments

std::string GameRunnerConfig::arguments

◆ autoDetectSync

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().

◆ enableDetailedLogging

bool GameRunnerConfig::enableDetailedLogging

Enable detailed Wine/Proton logging.

Definition at line 222 of file game.h.

Referenced by GameRunnerConfig().

◆ enableFsync

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().

◆ enableGameMode

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().

◆ enableGamePerformance

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().

◆ enableGamescope

◆ enableMangoHud

bool GameRunnerConfig::enableMangoHud

◆ enableVkBasalt

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().

◆ environmentVariables

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().

◆ excludeProcesses

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().

◆ executablePath

◆ gamescopeBorderless

bool GameRunnerConfig::gamescopeBorderless

Borderless window mode.

Definition at line 201 of file game.h.

Referenced by GameRunnerConfig(), and anonymous_namespace{game_process.cpp}::buildGamescopeWrapper().

◆ gamescopeEnableFSR

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().

◆ gamescopeEnableHDR

bool GameRunnerConfig::gamescopeEnableHDR

Enable HDR output.

Definition at line 205 of file game.h.

Referenced by GameRunnerConfig(), and anonymous_namespace{game_process.cpp}::buildGamescopeWrapper().

◆ gamescopeEnableITM

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().

◆ gamescopeEnableVRR

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().

◆ gamescopeForceGrabCursor

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().

◆ gamescopeFSRSharpness

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().

◆ gamescopeFullscreen

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().

◆ gamescopeHeight

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().

◆ gamescopeIntegerScaling

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().

◆ gamescopeInternalHeight

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().

◆ gamescopeInternalWidth

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().

◆ gamescopeITMSDRNits

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().

◆ gamescopeRefreshRate

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().

◆ gamescopeWidth

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().

◆ mangoHudConfigFile

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().

◆ protonVersion

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().

◆ runnerType

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().

◆ runnerVersion

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().

◆ unknownJsonExtras

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.

Definition at line 230 of file game.h.

◆ useSteamDefaults

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().

◆ useSteamLaunch

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().

◆ useVirtualDesktop

bool GameRunnerConfig::useVirtualDesktop

Launch game in Wine virtual desktop.

Definition at line 176 of file game.h.

Referenced by GameRunnerConfig().

◆ virtualDesktopHeight

int GameRunnerConfig::virtualDesktopHeight

Virtual desktop height in pixels.

Definition at line 178 of file game.h.

Referenced by GameRunnerConfig().

◆ virtualDesktopWidth

int GameRunnerConfig::virtualDesktopWidth

Virtual desktop width in pixels.

Definition at line 177 of file game.h.

Referenced by GameRunnerConfig().

◆ wineDLL

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().

◆ winePath

std::string GameRunnerConfig::winePath

Custom Wine binary path (e.g., from Lutris config).

Definition at line 168 of file game.h.

◆ winePrefix

std::string GameRunnerConfig::winePrefix

WINEPREFIX path (Wine install location).

Definition at line 167 of file game.h.

Referenced by ScannedGame::toGame().

◆ workingDirectory

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().


The documentation for this struct was generated from the following file: