game_launcher 1.1.0
Modern Linux game launcher with Steam / Proton / Wine integration
Loading...
Searching...
No Matches
game.h File Reference
#include <cstdint>
#include <ctime>
#include <map>
#include <string>
#include <vector>
Include dependency graph for game.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ActualRuntimeInfo
 Actual environment and command line read from a running process. More...
struct  CloudSaveInfo
 Information about Steam Cloud save synchronization. More...
struct  DLCInfo
 Information about downloadable content (DLC). More...
class  Game
 Complete representation of a game in the library. More...
struct  GameImagePaths
 Paths to various game image assets. More...
 Descriptive information and media for a game. More...
struct  GameRunnerConfig
 Configuration for how to launch and run a game. More...
struct  GameStatistics
 Play statistics and usage tracking for a game. More...
struct  HowLongToBeatInfo
 Time-to-beat estimates from HowLongToBeat.com. More...
struct  LaunchInfo
 Information about optimizations and settings applied during game launch. More...
struct  PlaySession
 Record of a single game play session. More...

Enumerations

enum class  CompletionStatus {
  NotPlayed , Playing , Beaten , Completed ,
  OnHold , Abandoned , Played
}
 User's completion/play status for tracking backlog. More...
enum class  GamePlatform {
  Native , Wine , Proton , Steam ,
  GOG , Epic , DOSBox , ScummVM ,
  RetroArch
}
 Platform/runner type for executing the game. More...
enum class  GameRunner {
  Native , Wine , Proton , DOSBox ,
  ScummVM
}
 Runner/compatibility layer for executing the game. More...
enum class  GameSource {
  Local , Steam , GOG , Epic ,
  Itch , Lutris , Flatpak , Unknown
}
 Where the game was acquired from (store/service/local). More...
enum class  GameStatus {
  NotInstalled , Installed , Launching , Running ,
  Closing , Installing , Updating
}
 Current installation and execution status of the game. More...
enum class  ImageType {
  VerticalCover , HeroImage , Logo , Header ,
  Capsule , Icon
}
 Types of game images available. More...

Enumeration Type Documentation

◆ CompletionStatus

enum class CompletionStatus
strong

User's completion/play status for tracking backlog.

Inspired by Playnite's completion tracking system. Allows users to organize games by their personal progress through them.

Enumerator
NotPlayed 

Never played (backlog).

Playing 

Currently playing.

Beaten 

Main story/campaign completed.

Completed 

100% completion (achievements, side content, etc.)

OnHold 

Temporarily paused.

Abandoned 

Stopped playing, unlikely to return.

Played 

Played but no clear completion criteria (e.g., multiplayer).

Definition at line 114 of file game.h.

◆ GamePlatform

enum class GamePlatform
strong

Platform/runner type for executing the game.

Deprecated
This enum mixes source and runner concepts. Use GameSource + GameRunner instead. Kept for backward compatibility during migration.

Determines how the game should be launched and what compatibility layer (if any) should be used.

Enumerator
Native 

Native Linux executable (no compatibility layer).

Wine 

Windows game via Wine compatibility layer.

Proton 

Windows game via Proton (Steam's Wine fork).

Steam 

Steam game (launched via Steam client).

GOG 

GOG game (DRM-free game from GOG.com).

Epic 

Epic Games Store game.

DOSBox 

DOS game via DOSBox emulator.

ScummVM 

ScummVM game (adventure game engine).

RetroArch 

RetroArch/emulated game (console emulation).

Definition at line 60 of file game.h.

◆ GameRunner

enum class GameRunner
strong

Runner/compatibility layer for executing the game.

Determines which runtime or compatibility layer should be used to launch the game.

Enumerator
Native 

Native Linux executable (no compatibility layer).

Wine 

Wine compatibility layer.

Proton 

Proton (Steam's Wine fork).

DOSBox 

DOSBox emulator.

ScummVM 

ScummVM engine.

Definition at line 80 of file game.h.

◆ GameSource

enum class GameSource
strong

Where the game was acquired from (store/service/local).

Identifies the source or storefront where the game was obtained. This is separate from how the game runs (GameRunner).

Enumerator
Local 

Manually added game (not from a store).

Steam 

Steam store/platform.

GOG 

GOG.com (DRM-free games).

Epic 

Epic Games Store.

Itch 

itch.io indie games

Lutris 

Lutris community scripts.

Flatpak 

Flatpak package.

Unknown 

Unknown or unspecified source.

Definition at line 38 of file game.h.

◆ GameStatus

enum class GameStatus
strong

Current installation and execution status of the game.

Tracks the lifecycle state of a game from addition to library through installation and execution.

Enumerator
NotInstalled 

Game is in library but not installed.

Installed 

Game is installed and ready to play.

Launching 

Game is being launched (waiting for process to start).

Running 

Game is currently running.

Closing 

Game is shutting down (waiting for process to terminate).

Installing 

Game is being installed.

Updating 

Game is being updated.

Definition at line 96 of file game.h.

◆ ImageType

enum class ImageType
strong

Types of game images available.

Enumerator
VerticalCover 

Vertical cover art (600x900, portrait).

HeroImage 

Wide banner/hero image (landscape).

Logo 

Game logo with transparency (PNG).

Header 

Small header image (460x215).

Capsule 

Store capsule image (616x353).

Icon 

Small square icon.

Definition at line 477 of file game.h.