|
game_launcher 1.1.0
Modern Linux game launcher with Steam / Proton / Wine integration
|
Metadata for a Steam game parsed from appmanifest ACF file. More...
#include <steam_integration.h>
Public Member Functions | |
| std::string | downloadCoverArt (const std::string &coverArtDir) const |
| Download cover art from Steam CDN. | |
| Game | toGame () const |
| Convert SteamGame to Game object for library. | |
Public Attributes | |
| uint32_t | appId |
| Steam App ID. | |
| uint64_t | bytesDownloaded = 0 |
| Bytes downloaded so far. | |
| uint64_t | bytesStaged = 0 |
| Bytes staged for installation. | |
| uint64_t | bytesToDownload = 0 |
| Total bytes to download. | |
| uint64_t | bytesToStage = 0 |
| Total bytes to stage. | |
| std::vector< std::string > | categories |
| Steam categories (Single-player, Multi-player, etc.). | |
| CloudSaveInfo | cloudSave |
| Steam Cloud save information. | |
| std::string | compatToolName |
| Raw compat tool name from Steam config (e.g., "proton_experimental"). | |
| std::vector< DLCInfo > | dlc |
| Installed DLC for this game. | |
| std::string | gameArguments |
| Default launch arguments from Steam (e.g., "-nohmd"). | |
| std::string | gameExecutable |
| Game exe relative to install dir (e.g., "FSD.exe"). | |
| std::filesystem::path | gamePath |
| Full path to game directory. | |
| std::vector< std::string > | genres |
| Game genres from Steam API. | |
| std::string | installDir |
| Installation directory name. | |
| bool | isDownloading = false |
| Currently downloading/updating. | |
| bool | isInstalled |
| True if game is installed (has appmanifest), false if owned but not installed. | |
| bool | isProtonGame = false |
| Requires Proton (Windows game). | |
| bool | isUpdatePending = false |
| Update available but not yet started. | |
| time_t | lastUpdated = 0 |
| Last update timestamp. | |
| std::filesystem::path | libraryPath |
| Steam library root path. | |
| bool | metadataFetched = false |
| Whether API metadata has been fetched. | |
| std::string | name |
| Game name. | |
| std::filesystem::path | protonPath |
| Resolved path to proton executable. | |
| std::string | protonVersion |
| Detected Proton/compatibility tool version from Steam. | |
| uint64_t | sizeOnDisk = 0 |
| Installation size in bytes. | |
| uint32_t | stateFlags = 0 |
| Steam StateFlags from appmanifest. | |
| std::string | steamBuildId |
| Steam build ID from appmanifest. | |
| time_t | steamLastExit = 0 |
| Last exit timestamp from Steam autocloud. | |
| time_t | steamLastLaunch = 0 |
| Last launch timestamp from Steam autocloud. | |
| time_t | steamLastPlayed = 0 |
| Last played timestamp from Steam. | |
| uint32_t | steamPlaytime2Weeks = 0 |
| Playtime in last 2 weeks (in minutes). | |
| uint32_t | steamPlaytimeMinutes = 0 |
| Total playtime from Steam (in minutes). | |
| std::string | steamType |
| App type: "game", "dlc", "demo", "tool", "music", etc. | |
| std::vector< std::string > | steamUserCategories |
| User-defined categories/tags from Steam. | |
Metadata for a Steam game parsed from appmanifest ACF file.
Definition at line 212 of file steam_integration.h.
| std::string SteamGame::downloadCoverArt | ( | const std::string & | coverArtDir | ) | const |
Download cover art from Steam CDN.
| coverArtDir | Directory to save cover art images |
Definition at line 675 of file steam_integration.cpp.
References appId, Logger::debug(), SteamCDN::discoverImages(), SteamCDN::downloadImage(), SteamPaths::getPrimarySteamRoot(), Logger::info(), name, VerticalCover, and GameImagePaths::verticalCover.
| Game SteamGame::toGame | ( | ) | const |
Convert SteamGame to Game object for library.
Definition at line 505 of file steam_integration.cpp.
References appId, GameRunnerConfig::arguments, categories, GameMetadata::cloudSave, cloudSave, Logger::debug(), SteamCDN::discoverImages(), GameMetadata::dlc, dlc, GameRunnerConfig::environmentVariables, GameRunnerConfig::executablePath, gameArguments, gameExecutable, gamePath, GameMetadata::genres, genres, SteamPaths::getPrimarySteamRoot(), GameImagePaths::heroImage, GameMetadata::imagePaths, Installed, Game::installPath, Game::installSizeBytes, isInstalled, isProtonGame, GameMetadata::isSteamGame, GameStatistics::lastPlayed, Game::metadata, Game::name, name, Native, NotInstalled, Proton, protonPath, GameRunnerConfig::protonVersion, protonVersion, SteamLibraryScanner::readSteamLaunchOptions(), Game::runner, Game::runnerConfig, GameRunnerConfig::runnerType, GameRunnerConfig::runnerVersion, sizeOnDisk, Game::source, Game::statistics, Game::status, Steam, GameMetadata::steamAppId, GameMetadata::steamBuildId, steamBuildId, GameMetadata::steamCategories, GameMetadata::steamInstalled, GameMetadata::steamLastExit, steamLastExit, GameMetadata::steamLastLaunch, steamLastLaunch, steamLastPlayed, GameMetadata::steamLaunchOptions, GameMetadata::steamPlaytime2Weeks, steamPlaytime2Weeks, steamPlaytimeMinutes, GameMetadata::steamType, steamType, GameMetadata::steamUserCategories, steamUserCategories, Game::syncPlatformFromRunner(), GameStatistics::totalPlayTimeSeconds, GameRunnerConfig::useSteamDefaults, GameRunnerConfig::useSteamLaunch, GameImagePaths::verticalCover, and GameRunnerConfig::workingDirectory.
| uint32_t SteamGame::appId |
Steam App ID.
Definition at line 214 of file steam_integration.h.
Referenced by downloadCoverArt(), ACFParser::parseManifest(), SteamLibraryScanner::populateDirectLaunchInfo(), SteamLibraryScanner::scanAllOwnedGames(), and toGame().
| uint64_t SteamGame::bytesDownloaded = 0 |
Bytes downloaded so far.
Definition at line 229 of file steam_integration.h.
Referenced by ACFParser::parseManifest().
| uint64_t SteamGame::bytesStaged = 0 |
Bytes staged for installation.
Definition at line 231 of file steam_integration.h.
Referenced by ACFParser::parseManifest().
| uint64_t SteamGame::bytesToDownload = 0 |
Total bytes to download.
Definition at line 230 of file steam_integration.h.
Referenced by ACFParser::parseManifest().
| uint64_t SteamGame::bytesToStage = 0 |
Total bytes to stage.
Definition at line 232 of file steam_integration.h.
Referenced by ACFParser::parseManifest().
| std::vector<std::string> SteamGame::categories |
Steam categories (Single-player, Multi-player, etc.).
Definition at line 247 of file steam_integration.h.
Referenced by toGame().
| CloudSaveInfo SteamGame::cloudSave |
Steam Cloud save information.
Definition at line 259 of file steam_integration.h.
Referenced by toGame().
| std::string SteamGame::compatToolName |
Raw compat tool name from Steam config (e.g., "proton_experimental").
Definition at line 255 of file steam_integration.h.
Referenced by SteamLibraryScanner::populateDirectLaunchInfo().
| std::vector<DLCInfo> SteamGame::dlc |
Installed DLC for this game.
Definition at line 260 of file steam_integration.h.
Referenced by toGame().
| std::string SteamGame::gameArguments |
Default launch arguments from Steam (e.g., "-nohmd").
Definition at line 252 of file steam_integration.h.
Referenced by SteamLibraryScanner::populateDirectLaunchInfo(), and toGame().
| std::string SteamGame::gameExecutable |
Game exe relative to install dir (e.g., "FSD.exe").
Definition at line 251 of file steam_integration.h.
Referenced by SteamLibraryScanner::populateDirectLaunchInfo(), and toGame().
| std::filesystem::path SteamGame::gamePath |
Full path to game directory.
Definition at line 218 of file steam_integration.h.
Referenced by isSteamToolOrRuntime(), ACFParser::parseManifest(), SteamLibraryScanner::scanAllOwnedGames(), and toGame().
| std::vector<std::string> SteamGame::genres |
Game genres from Steam API.
Definition at line 246 of file steam_integration.h.
Referenced by toGame().
| std::string SteamGame::installDir |
Installation directory name.
Definition at line 216 of file steam_integration.h.
Referenced by ACFParser::parseManifest(), and SteamLibraryScanner::scanAllOwnedGames().
| bool SteamGame::isDownloading = false |
Currently downloading/updating.
Definition at line 233 of file steam_integration.h.
Referenced by ACFParser::parseManifest().
| bool SteamGame::isInstalled |
True if game is installed (has appmanifest), false if owned but not installed.
Definition at line 220 of file steam_integration.h.
Referenced by isSteamToolOrRuntime(), SteamLibraryScanner::scanAllOwnedGames(), and toGame().
| bool SteamGame::isProtonGame = false |
Requires Proton (Windows game).
Definition at line 224 of file steam_integration.h.
Referenced by ACFParser::parseManifest(), SteamLibraryScanner::populateDirectLaunchInfo(), and toGame().
| bool SteamGame::isUpdatePending = false |
Update available but not yet started.
Definition at line 234 of file steam_integration.h.
Referenced by ACFParser::parseManifest().
| time_t SteamGame::lastUpdated = 0 |
Last update timestamp.
Definition at line 223 of file steam_integration.h.
Referenced by ACFParser::parseManifest(), and SteamLibraryScanner::scanAllOwnedGames().
| std::filesystem::path SteamGame::libraryPath |
Steam library root path.
Definition at line 217 of file steam_integration.h.
Referenced by ACFParser::parseManifest(), and SteamLibraryScanner::scanAllOwnedGames().
| bool SteamGame::metadataFetched = false |
Whether API metadata has been fetched.
Definition at line 248 of file steam_integration.h.
| std::string SteamGame::name |
Game name.
Definition at line 215 of file steam_integration.h.
Referenced by downloadCoverArt(), isSteamToolOrRuntime(), ACFParser::parseManifest(), SteamLibraryScanner::scanAllOwnedGames(), and toGame().
| std::filesystem::path SteamGame::protonPath |
Resolved path to proton executable.
Definition at line 253 of file steam_integration.h.
Referenced by SteamLibraryScanner::populateDirectLaunchInfo(), and toGame().
| std::string SteamGame::protonVersion |
Detected Proton/compatibility tool version from Steam.
Definition at line 225 of file steam_integration.h.
Referenced by ACFParser::parseManifest(), and toGame().
| uint64_t SteamGame::sizeOnDisk = 0 |
Installation size in bytes.
Definition at line 222 of file steam_integration.h.
Referenced by ACFParser::parseManifest(), SteamLibraryScanner::scanAllOwnedGames(), and toGame().
| uint32_t SteamGame::stateFlags = 0 |
Steam StateFlags from appmanifest.
Definition at line 228 of file steam_integration.h.
Referenced by ACFParser::parseManifest().
| std::string SteamGame::steamBuildId |
Steam build ID from appmanifest.
Definition at line 242 of file steam_integration.h.
Referenced by ACFParser::parseManifest(), and toGame().
| time_t SteamGame::steamLastExit = 0 |
Last exit timestamp from Steam autocloud.
Definition at line 241 of file steam_integration.h.
Referenced by SteamLibraryScanner::scanAllOwnedGames(), and toGame().
| time_t SteamGame::steamLastLaunch = 0 |
Last launch timestamp from Steam autocloud.
Definition at line 240 of file steam_integration.h.
Referenced by SteamLibraryScanner::scanAllOwnedGames(), and toGame().
| time_t SteamGame::steamLastPlayed = 0 |
Last played timestamp from Steam.
Definition at line 238 of file steam_integration.h.
Referenced by SteamLibraryScanner::scanAllOwnedGames(), and toGame().
| uint32_t SteamGame::steamPlaytime2Weeks = 0 |
Playtime in last 2 weeks (in minutes).
Definition at line 239 of file steam_integration.h.
Referenced by SteamLibraryScanner::scanAllOwnedGames(), and toGame().
| uint32_t SteamGame::steamPlaytimeMinutes = 0 |
Total playtime from Steam (in minutes).
Definition at line 237 of file steam_integration.h.
Referenced by SteamLibraryScanner::scanAllOwnedGames(), and toGame().
| std::string SteamGame::steamType |
App type: "game", "dlc", "demo", "tool", "music", etc.
Definition at line 245 of file steam_integration.h.
Referenced by SteamLibraryScanner::populateDirectLaunchInfo(), and toGame().
| std::vector<std::string> SteamGame::steamUserCategories |
User-defined categories/tags from Steam.
Definition at line 258 of file steam_integration.h.
Referenced by toGame().