316 summary +=
" | AMD Anti-Lag";
318 summary +=
" | NVAPI";
321 std::vector<std::string> wrappers;
324 std::string gs =
"Gamescope";
327 wrappers.push_back(gs);
330 wrappers.push_back(
"MangoHud");
332 wrappers.push_back(
"GameMode");
334 wrappers.push_back(
"game-performance");
336 wrappers.push_back(
"VkBasalt");
338 if (!wrappers.empty())
341 for (
size_t i = 0; i < wrappers.size(); i++)
345 summary += wrappers[i];
352 summary +=
" | Fixes: ";
388 static std::vector<std::string> keys = {
396 "PROTON_USE_WINED3D",
397 "PROTON_FORCE_NVAPI",
399 "PROTON_HIDE_NVIDIA_GPU",
400 "PROTON_NO_WRITE_WATCH",
402 "PROTON_EAC_RUNTIME",
403 "PROTON_BATTLEYE_RUNTIME",
404 "WINE_FULLSCREEN_FSR",
405 "WINE_SIMULATE_WRITECOPY",
413 "DXVK_STATE_CACHE_PATH",
414 "__GL_SHADER_DISK_CACHE_SKIP_CLEANUP",
416 "WINE_FULLSCREEN_FSR",
417 "WINE_FULLSCREEN_FSR_STRENGTH",
418 "ENABLE_GAMESCOPE_WSI",
420 "PROTON_FORCE_NVAPI",
422 "__NV_PRIME_RENDER_OFFLOAD",
423 "VKD3D_FEATURE_LEVEL",
432 "__GL_THREADED_OPTIMIZATIONS",
434 "STEAM_COMPAT_DATA_PATH",
435 "STEAM_COMPAT_CLIENT_INSTALL_PATH",
465 std::vector<std::string>
583 std::vector<std::string>
594 std::vector<std::string>
722 std::map<std::string, std::string>
std::string publisherLowerCache_
Cached lowercase publisher for case-insensitive search (computed on first access).
std::string nameLowerCache_
Cached lowercase name for case-insensitive search (computed on first access).
GameMetadata metadata
Descriptive information and media.
std::string getPlatformName() const
Get human-readable platform name.
void deserializeMetadata(const std::string &json)
Deserialize metadata from JSON.
std::vector< PlaySession > recentSessions
Recent play sessions (last 20 kept in memory).
std::string userNotes
User's personal notes about the game.
std::string getFormattedInstallSize() const
Format install size as human-readable string.
std::vector< std::string > collections
Collections this game belongs to.
std::string installPath
Installation directory path.
CompletionStatus completionStatus
User's completion status.
bool cacheInitialized_
True if caches have been computed.
const std::string & getDeveloperLower() const
Get lowercase developer (cached for performance).
bool isFavorite
Is this marked as a favorite game?
std::string name
Display name shown in UI.
const std::string & getNameLower() const
Get lowercase name (cached for performance).
std::string getSourceName() const
Get human-readable source name.
std::string serializeRunnerConfig() const
Serialize runner configuration to JSON.
std::string id
Unique identifier (auto-generated or user-specified).
std::string descriptionLowerCache_
Cached lowercase description for case-insensitive search (computed on first access).
void syncPlatformFromRunner()
Sync the deprecated platform field from the current runner and source.
GameStatistics statistics
Play statistics and usage tracking.
GameRunner runner
Runner/compatibility layer to use (Native, Proton, Wine, etc.).
double getAverageSessionDuration() const
Get average session duration for this game.
const std::string & getPublisherLower() const
Get lowercase publisher (cached for performance).
void invalidateCache() const
Invalidate lowercase caches (call when name/metadata changes).
GameRunnerConfig runnerConfig
How to launch and run the game.
std::string getFormattedPlayTime() const
Format total play time as human-readable string.
std::string getCompletionStatusName() const
Get human-readable completion status name.
GameStatus status
Current installation and execution status.
std::string getStatusName() const
Get human-readable status name.
HowLongToBeatInfo hltbInfo
Time-to-beat estimates.
std::map< std::string, GameRunnerConfig > configTemplates
Named configuration templates (presets) that can be switched between Key is template name (e....
uint64_t installSizeBytes
Installation size in bytes.
Game()
Default constructor.
std::string developerLowerCache_
Cached lowercase developer for case-insensitive search (computed on first access).
bool isInstalled() const
Check if game is currently installed.
double getRemainingPlaytime(int targetStyle=0) const
Get estimated remaining playtime based on HLTB data.
std::string serializeMetadata() const
Serialize metadata to JSON.
std::string activeTemplateName
Currently active template name (empty = using runnerConfig directly).
void deserializeRunnerConfig(const std::string &json)
Deserialize runner configuration from JSON.
bool isRunning() const
Check if game is currently running.
GameSource source
Where the game was acquired from (Steam, GOG, Local, etc.).
double getCompletionPercentage(int targetStyle=0) const
Get completion percentage based on HLTB estimate.
std::string getRunnerName() const
Get human-readable runner name.
std::string getImagePath(ImageType type) const
Get path for a specific image type.
const std::string & getDescriptionLower() const
Get lowercase description (cached for performance).
GameSource
Where the game was acquired from (store/service/local).
@ Steam
Steam store/platform.
@ Local
Manually added game (not from a store).
@ Itch
itch.io indie games
@ Lutris
Lutris community scripts.
@ Unknown
Unknown or unspecified source.
@ GOG
GOG.com (DRM-free games).
@ Flatpak
Flatpak package.
GamePlatform
Platform/runner type for executing the game.
@ ScummVM
ScummVM game (adventure game engine).
@ RetroArch
RetroArch/emulated game (console emulation).
@ Steam
Steam game (launched via Steam client).
@ Proton
Windows game via Proton (Steam's Wine fork).
@ Native
Native Linux executable (no compatibility layer).
@ Wine
Windows game via Wine compatibility layer.
@ DOSBox
DOS game via DOSBox emulator.
ImageType
Types of game images available.
@ HeroImage
Wide banner/hero image (landscape).
@ Capsule
Store capsule image (616x353).
@ VerticalCover
Vertical cover art (600x900, portrait).
@ Logo
Game logo with transparency (PNG).
@ Header
Small header image (460x215).
GameStatus
Current installation and execution status of the game.
@ Installing
Game is being installed.
@ NotInstalled
Game is in library but not installed.
@ Running
Game is currently running.
@ Closing
Game is shutting down (waiting for process to terminate).
@ Updating
Game is being updated.
@ Installed
Game is installed and ready to play.
@ Launching
Game is being launched (waiting for process to start).
GameRunner
Runner/compatibility layer for executing the game.
@ Proton
Proton (Steam's Wine fork).
@ Native
Native Linux executable (no compatibility layer).
@ Wine
Wine compatibility layer.
CompletionStatus
User's completion/play status for tracking backlog.
@ Played
Played but no clear completion criteria (e.g., multiplayer).
@ Completed
100% completion (achievements, side content, etc.)
@ Abandoned
Stopped playing, unlikely to return.
@ Beaten
Main story/campaign completed.
@ OnHold
Temporarily paused.
@ Playing
Currently playing.
@ NotPlayed
Never played (backlog).
Actual environment and command line read from a running process.
static const std::vector< std::string > & getKeyEnvVars()
std::vector< std::string > compareWithConfigured(const std::vector< std::string > &configured) const
Compare configured vs actual environment.
int pid
Process ID this info was read from.
static ActualRuntimeInfo readFromProcess(int processId)
Read actual runtime info from a process.
std::map< std::string, std::string > envVars
All environment variables.
std::map< std::string, std::string > getKeyEnvironment() const
Get only gaming-related environment variables.
std::string commandLine
Full command line from /proc/pid/cmdline.
bool valid
Whether the read was successful.
Information about Steam Cloud save synchronization.
uint64_t storageBytes
Cloud storage used in bytes.
time_t lastSyncTime
Last successful sync timestamp.
bool enabled
Cloud saves enabled for this game.
bool supported
Game supports Steam Cloud.
int lastSyncState
0=synced, 1=uploading, 2=downloading, 3=error
Information about downloadable content (DLC).
int appId
Steam App ID of the DLC.
bool installed
True if DLC is installed.
uint64_t sizeBytes
Installation size in bytes.
std::string name
DLC display name.
Paths to various game image assets.
std::string header
Small header image (header.jpg, 460x215).
std::string capsule
Store capsule image (capsule_616x353.jpg).
std::string logo
Game logo with transparency (logo.png).
std::string icon
Small square icon (icon.jpg).
std::string verticalCover
Vertical cover art (library_600x900.jpg).
std::string heroImage
Wide banner/hero image (library_hero.jpg).
Configuration for how to launch and run a game.
bool enableVkBasalt
Enable VkBasalt shader injection.
int gamescopeInternalHeight
Internal render height for FSR upscaling (0 = native).
std::string executablePath
Full path to game executable.
int gamescopeITMSDRNits
ITM SDR nits reference (0 = use default).
bool gamescopeIntegerScaling
Enable integer scaling filter.
bool useSteamDefaults
For Steam games: if true, don't sync custom env vars/wrappers to Steam's VDF files.
int virtualDesktopWidth
Virtual desktop width in pixels.
std::string wineDLL
DLL overrides (e.g., "d3d11=native,builtin").
bool gamescopeFullscreen
Run in fullscreen mode.
std::string workingDirectory
Working directory for game execution.
bool useVirtualDesktop
Launch game in Wine virtual desktop.
std::string arguments
Command line arguments to pass to game.
std::vector< std::string > excludeProcesses
Processes to exclude when tracking launcher child processes These are helper processes that should no...
std::string unknownJsonExtras
Round-trip-preservation buffer.
int gamescopeHeight
Gamescope output height (0 = native).
bool gamescopeEnableFSR
Enable AMD FSR upscaling.
bool enableMangoHud
Enable MangoHud performance overlay.
std::string winePath
Custom Wine binary path (e.g., from Lutris config).
std::string winePrefix
WINEPREFIX path (Wine install location).
int gamescopeFSRSharpness
FSR sharpness (0-20, 0 = max sharp).
bool gamescopeEnableVRR
Enable Variable Refresh Rate.
bool enableGamePerformance
Enable game-performance wrapper (CachyOS).
bool enableFsync
Enable Fsync (kernel 5.16+, best performance).
int gamescopeRefreshRate
Refresh rate limit (0 = no limit).
bool autoDetectSync
Auto-detect best sync method (default: true).
bool gamescopeEnableITM
Enable HDR inverse tone mapping for SDR games.
int gamescopeWidth
Gamescope output width (0 = native).
bool enableDetailedLogging
Enable detailed Wine/Proton logging.
std::string mangoHudConfigFile
Per-game MangoHud config file path (MANGOHUD_CONFIGFILE).
std::string runnerVersion
Runner version: "wine-8.0", "proton-8.0-5", etc.
std::string runnerType
Runner type: "wine", "proton", "native", etc.
int gamescopeInternalWidth
Internal render width for FSR upscaling (0 = native).
bool enableGameMode
Enable GameMode CPU governor optimization.
int virtualDesktopHeight
Virtual desktop height in pixels.
bool enableGamescope
Enable Gamescope compositor.
std::string protonVersion
Proton version (e.g., "proton-cachyos-slr").
std::map< std::string, std::string > environmentVariables
Environment variables to set before launching (KEY=VALUE pairs).
bool gamescopeEnableHDR
Enable HDR output.
bool useSteamLaunch
For Steam games: if true, launch via "steam -applaunch" instead of direct Proton.
bool gamescopeBorderless
Borderless window mode.
GameRunnerConfig()
Constructor with sensible defaults.
bool gamescopeForceGrabCursor
Force cursor grab (useful for some games).
Play statistics and usage tracking for a game.
time_t lastExitTime
Unix timestamp of last exit.
std::string lastExitReason
Reason game stopped: "normal", "crash", "timeout", "unknown".
std::string lastProtonVersion
Proton version used in last launch.
time_t dateInstalled
Unix timestamp when installed.
std::map< std::string, std::string > lastEnvironmentVars
Environment variables from last launch.
std::string lastLaunchCommand
Full command used for last launch (with env vars).
double totalPlayTimeSeconds
Total play time in seconds (for all sessions).
time_t lastPlayed
Unix timestamp of last play session.
int timesLaunched
Number of times game was launched.
time_t dateAdded
Unix timestamp when added to library.
GameStatistics()
Constructor with defaults.
int crashCount
Number of times game has crashed.
Time-to-beat estimates from HowLongToBeat.com.
bool isStale() const
Check if data is stale (older than 30 days).
time_t lastUpdated
When this data was fetched.
double allStylesHours
Average across all playstyles.
double completionistHours
100% completion
int hltbId
HowLongToBeat game ID.
bool found
Whether a match was found.
std::string matchedName
Name matched on HLTB.
double mainPlusExtrasHours
Main + side content.
double mainStoryHours
Main story/campaign only.
static std::string formatHours(double hours)
Get formatted time string for a playstyle.
Information about optimizations and settings applied during game launch.
bool amdAntiLag
AMD Anti-Lag enabled.
bool gameMode
GameMode enabled.
int customEnvVars
Number of custom environment variables.
bool vkBasalt
VkBasalt enabled.
bool nvidiaNvapi
NVIDIA NVAPI enabled.
bool mangoHud
MangoHud enabled.
std::string getSummary(bool detailed=false) const
Generate a human-readable summary of applied optimizations.
std::string winePrefix
Wine prefix path used.
std::string runner
Runner used: "Wine", "Proton", "Native".
bool gamePerformance
game-performance enabled
std::string gpuVendor
"AMD", "NVIDIA", "Intel"
std::string gamescopeMode
Gamescope mode info (e.g., "1920x1080@144 FSR").
std::string runnerVersion
Version: wine-cachyos, UMU-Proton, etc.
std::vector< std::string > appliedFixes
e.g., "WINE_SIMULATE_WRITECOPY=1"
std::string syncMethod
"Fsync", "Esync", or "None"
bool gamescope
Gamescope compositor enabled.
Record of a single game play session.
std::string getFormattedDuration() const
Get formatted duration string.
bool isActive() const
Check if session is still active.
time_t startTime
Unix timestamp when session started.
float minFps
Minimum FPS during session.
std::string exitReason
"normal", "crash", "timeout", "force_stop"
int64_t sessionId
Unique session ID (auto-generated).
double durationSeconds
Session duration in seconds.
time_t endTime
Unix timestamp when session ended (0 if still running).
float avgFrametime
Average frametime in ms.
int exitCode
Process exit code.
std::string protonVersion
Proton/Wine version used.
float avgFps
Average FPS during session (0 if not captured).