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

Parsed metadata for a single Steam app from appinfo.vdf. More...

#include <steam_appinfo_parser.h>

Public Member Functions

std::optional< SteamLaunchEntry > getNativeLaunchEntry () const
 Get the best launch entry for native Linux execution.
std::optional< SteamLaunchEntry > getProtonLaunchEntry () const
 Get the best launch entry for running under Proton.
bool isGame () const
bool isTool () const

Public Attributes

uint32_t appId = 0
std::vector< SteamLaunchEntry > launchEntries
 All launch configurations.
std::string name
 App name from common section.
std::string type
 App type: "Game", "Tool", "DLC", "Demo", etc.

Detailed Description

Parsed metadata for a single Steam app from appinfo.vdf.

Definition at line 67 of file steam_appinfo_parser.h.

Member Function Documentation

◆ getNativeLaunchEntry()

std::optional< SteamLaunchEntry > SteamAppVdfInfo::getNativeLaunchEntry ( ) const

Get the best launch entry for native Linux execution.

Returns
Best native Linux launch entry, or nullopt if none found

Definition at line 72 of file steam_appinfo_parser.cpp.

References launchEntries.

◆ getProtonLaunchEntry()

std::optional< SteamLaunchEntry > SteamAppVdfInfo::getProtonLaunchEntry ( ) const

Get the best launch entry for running under Proton.

Selection priority:

  1. Default Windows entry (type="default" or "", oslist contains "windows")
  2. Any Windows entry with type="none" (some games use this for the main exe)
  3. First Windows entry as fallback
Returns
Best launch entry for Proton, or nullopt if none found

Definition at line 46 of file steam_appinfo_parser.cpp.

References launchEntries.

◆ isGame()

bool SteamAppVdfInfo::isGame ( ) const
inline

Definition at line 92 of file steam_appinfo_parser.h.

References type.

◆ isTool()

bool SteamAppVdfInfo::isTool ( ) const
inline

Definition at line 96 of file steam_appinfo_parser.h.

References type.

Member Data Documentation

◆ appId

uint32_t SteamAppVdfInfo::appId = 0

Definition at line 69 of file steam_appinfo_parser.h.

◆ launchEntries

std::vector<SteamLaunchEntry> SteamAppVdfInfo::launchEntries

All launch configurations.

Definition at line 72 of file steam_appinfo_parser.h.

Referenced by getNativeLaunchEntry(), and getProtonLaunchEntry().

◆ name

std::string SteamAppVdfInfo::name

App name from common section.

Definition at line 70 of file steam_appinfo_parser.h.

◆ type

std::string SteamAppVdfInfo::type

App type: "Game", "Tool", "DLC", "Demo", etc.

Definition at line 71 of file steam_appinfo_parser.h.

Referenced by isGame(), and isTool().


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