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

Parsed configuration for a Lutris-managed game. More...

#include <lutris_config.h>

Public Member Functions

std::string getEffectiveWinePath () const
 Get the effective wine path to use.
std::string getFullExecutablePath () const
 Get the full path to the executable.
bool isValid () const
 Check if config is valid and usable.

Public Attributes

std::string arch
 Wine architecture: "win32" or "win64".
std::string arguments
 Command line arguments (optional).
std::string customWinePath
 Custom wine path from runner config.
std::map< std::string, std::string > dllOverrides
std::map< std::string, std::string > environmentVariables
std::vector< std::string > excludeProcesses
std::string exe
 Relative path to executable (from prefix).
std::string gameSlug
 Game slug from lutris.net.
std::string name
 Game display name.
std::string prefix
 Wine prefix path.
std::string slug
 Game slug (unique identifier).
std::string winePath
 Full path to wine executable.
std::string wineVersion
 Wine version name (e.g., "Proton - Experimental").
std::string workingDir
 Working directory (optional).

Detailed Description

Parsed configuration for a Lutris-managed game.

Contains all the settings needed to launch a game the same way Lutris would launch it.

Definition at line 40 of file lutris_config.h.

Member Function Documentation

◆ getEffectiveWinePath()

std::string LutrisGameConfig::getEffectiveWinePath ( ) const

Get the effective wine path to use.

Returns
Wine path from config, custom path, or empty for system default

Definition at line 30 of file lutris_config.cpp.

References customWinePath, and winePath.

Referenced by LutrisConfigParser::parseConfigFile().

◆ getFullExecutablePath()

std::string LutrisGameConfig::getFullExecutablePath ( ) const

Get the full path to the executable.

Returns
Full path (prefix + exe) or empty string if invalid

Definition at line 21 of file lutris_config.cpp.

References exe, and prefix.

Referenced by LutrisConfigParser::findConfigForExecutable().

◆ isValid()

bool LutrisGameConfig::isValid ( ) const
inline

Check if config is valid and usable.

Returns
True if the config has minimum required fields

Definition at line 72 of file lutris_config.h.

References exe, and prefix.

Referenced by LutrisConfigParser::findConfigForExecutable(), and LutrisConfigParser::parseConfigFile().

Member Data Documentation

◆ arch

std::string LutrisGameConfig::arch

Wine architecture: "win32" or "win64".

Definition at line 50 of file lutris_config.h.

Referenced by LutrisConfigParser::parseConfigFile().

◆ arguments

std::string LutrisGameConfig::arguments

Command line arguments (optional).

Definition at line 52 of file lutris_config.h.

Referenced by LutrisConfigParser::parseConfigFile().

◆ customWinePath

std::string LutrisGameConfig::customWinePath

Custom wine path from runner config.

Definition at line 57 of file lutris_config.h.

Referenced by getEffectiveWinePath(), and LutrisConfigParser::parseConfigFile().

◆ dllOverrides

std::map<std::string, std::string> LutrisGameConfig::dllOverrides

Definition at line 63 of file lutris_config.h.

Referenced by LutrisConfigParser::parseConfigFile().

◆ environmentVariables

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

Definition at line 60 of file lutris_config.h.

Referenced by LutrisConfigParser::parseConfigFile().

◆ excludeProcesses

std::vector<std::string> LutrisGameConfig::excludeProcesses

Definition at line 66 of file lutris_config.h.

Referenced by LutrisConfigParser::parseConfigFile().

◆ exe

std::string LutrisGameConfig::exe

Relative path to executable (from prefix).

Definition at line 48 of file lutris_config.h.

Referenced by getFullExecutablePath(), isValid(), and LutrisConfigParser::parseConfigFile().

◆ gameSlug

std::string LutrisGameConfig::gameSlug

Game slug from lutris.net.

Definition at line 45 of file lutris_config.h.

Referenced by LutrisConfigParser::parseConfigFile().

◆ name

std::string LutrisGameConfig::name

Game display name.

Definition at line 43 of file lutris_config.h.

Referenced by LutrisConfigParser::parseConfigFile().

◆ prefix

std::string LutrisGameConfig::prefix

Wine prefix path.

Definition at line 49 of file lutris_config.h.

Referenced by getFullExecutablePath(), isValid(), and LutrisConfigParser::parseConfigFile().

◆ slug

std::string LutrisGameConfig::slug

Game slug (unique identifier).

Definition at line 44 of file lutris_config.h.

Referenced by LutrisConfigParser::parseConfigFile().

◆ winePath

std::string LutrisGameConfig::winePath

Full path to wine executable.

Definition at line 56 of file lutris_config.h.

Referenced by getEffectiveWinePath().

◆ wineVersion

std::string LutrisGameConfig::wineVersion

Wine version name (e.g., "Proton - Experimental").

Definition at line 55 of file lutris_config.h.

Referenced by LutrisConfigParser::parseConfigFile().

◆ workingDir

std::string LutrisGameConfig::workingDir

Working directory (optional).

Definition at line 51 of file lutris_config.h.

Referenced by LutrisConfigParser::parseConfigFile().


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