149 static std::string extractYamlValue(
const std::string& line,
const std::string& key,
157 static int countIndent(
const std::string& line);
164 static std::string trim(
const std::string& str);
171 static std::string unquote(
const std::string& str);
177 static std::string readWineRunnerConfig();
Parser for Lutris game configuration files.
static std::string findConfigForExecutable(const std::string &executablePath)
Find Lutris config file for a given executable.
static std::string getGamesDirectory()
Get the Lutris games directory.
static std::string getRunnersDirectory()
Get the Lutris runners directory.
static LutrisGameConfig parseConfigFile(const std::string &configPath)
Parse a Lutris game config file.
Parsed configuration for a Lutris-managed game.
std::string workingDir
Working directory (optional).
std::string gameSlug
Game slug from lutris.net.
std::string name
Game display name.
std::string getFullExecutablePath() const
Get the full path to the executable.
std::map< std::string, std::string > dllOverrides
std::string prefix
Wine prefix path.
std::map< std::string, std::string > environmentVariables
std::string exe
Relative path to executable (from prefix).
std::vector< std::string > excludeProcesses
std::string wineVersion
Wine version name (e.g., "Proton - Experimental").
std::string slug
Game slug (unique identifier).
std::string arguments
Command line arguments (optional).
bool isValid() const
Check if config is valid and usable.
std::string arch
Wine architecture: "win32" or "win64".
std::string winePath
Full path to wine executable.
std::string customWinePath
Custom wine path from runner config.
std::string getEffectiveWinePath() const
Get the effective wine path to use.