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

Parsed components from Steam launch options string. More...

#include <steam_integration.h>

Public Member Functions

bool isEmpty () const
 Check if launch options string is empty or only whitespace.

Static Public Member Functions

static ParsedSteamLaunchOptions parse (const std::string &launchOptions)
 Parse Steam launch options string.

Public Attributes

std::map< std::string, std::string > environmentVariables
 Environment variables (KEY=VALUE).
std::vector< std::string > gameArguments
 Arguments after command%.
std::string rawString
 Original launch options string.
std::vector< std::string > wrappers
 Wrapper commands (e.g., game-performance, mangohud).

Detailed Description

Parsed components from Steam launch options string.

Definition at line 284 of file steam_integration.h.

Member Function Documentation

◆ isEmpty()

bool ParsedSteamLaunchOptions::isEmpty ( ) const

Check if launch options string is empty or only whitespace.

Definition at line 1507 of file steam_integration.cpp.

References environmentVariables, gameArguments, rawString, and wrappers.

◆ parse()

ParsedSteamLaunchOptions ParsedSteamLaunchOptions::parse ( const std::string & launchOptions)
static

Parse Steam launch options string.

Parameters
launchOptionsRaw launch options from Steam
Returns
Parsed components

Example input: "DXVK_HDR=1 PROTON_ENABLE_HDR=1 game-performance %command% -dx11"

  • environmentVariables: {"DXVK_HDR": "1", "PROTON_ENABLE_HDR": "1"}
  • wrappers: {"game-performance"}
  • gameArguments: {"-dx11"}

Definition at line 1426 of file steam_integration.cpp.

References environmentVariables, gameArguments, rawString, and wrappers.

Member Data Documentation

◆ environmentVariables

std::map<std::string, std::string> ParsedSteamLaunchOptions::environmentVariables

Environment variables (KEY=VALUE).

Definition at line 286 of file steam_integration.h.

Referenced by isEmpty(), and parse().

◆ gameArguments

std::vector<std::string> ParsedSteamLaunchOptions::gameArguments

Arguments after command%.

Definition at line 288 of file steam_integration.h.

Referenced by isEmpty(), and parse().

◆ rawString

std::string ParsedSteamLaunchOptions::rawString

Original launch options string.

Definition at line 289 of file steam_integration.h.

Referenced by isEmpty(), and parse().

◆ wrappers

std::vector<std::string> ParsedSteamLaunchOptions::wrappers

Wrapper commands (e.g., game-performance, mangohud).

Definition at line 287 of file steam_integration.h.

Referenced by isEmpty(), and parse().


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