|
game_launcher 1.1.0
Modern Linux game launcher with Steam / Proton / Wine integration
|
#include <cstddef>Go to the source code of this file.
Namespaces | |
| namespace | SteamConstants |
Variables | |
| constexpr int | SteamConstants::API_TIMEOUT_SEC = 5 |
| Timeout for Steam Web API HTTP requests. | |
| constexpr const char * | SteamConstants::APPMANIFEST_PREFIX = "appmanifest_" |
| Prefix for game manifest files. | |
| constexpr const char * | SteamConstants::CMD_CHECK_STEAM = "pgrep -x steam > /dev/null 2>&1" |
| Command to check if Steam process is running. | |
| constexpr const char * | SteamConstants::CMD_FIND_STEAM_GAMES = "pgrep -a -f '/reaper SteamLaunch AppId=' 2>/dev/null" |
| Command to find running Steam games by reaper process. | |
| constexpr const char * | SteamConstants::CMD_LAUNCH_STEAM_GAME = "steam -applaunch" |
| Command prefix for launching Steam games. | |
| constexpr const char * | SteamConstants::CMD_SHUTDOWN_STEAM = "steam -shutdown" |
| Command to gracefully shutdown Steam. | |
| constexpr const char * | SteamConstants::CMD_START_STEAM_SILENT = "steam -silent" |
| Command to start Steam silently (no window). | |
| constexpr const char * | SteamConstants::COMMON_DIR = "common" |
| Directory containing installed games (within steamapps). | |
| constexpr const char * | SteamConstants::COMPAT_TOOLS_DIR = "compatibilitytools.d" |
| Directory containing compatibility tools. | |
| constexpr const char * | SteamConstants::COMPATDATA_DIR = "compatdata" |
| Directory containing Proton compatibility data. | |
| constexpr const char * | SteamConstants::CONFIG_DIR = "config" |
| Directory containing global Steam configuration. | |
| constexpr const char * | SteamConstants::CONFIG_VDF = "config.vdf" |
| File containing global Steam configuration (Proton mappings). | |
| constexpr int | SteamConstants::COVER_ART_TIMEOUT_SEC = 5 |
| Timeout for cover art image downloads. | |
| constexpr int | SteamConstants::CURL_TIMEOUT_SEC = 5 |
| Timeout for general curl operations. | |
| constexpr const char * | SteamConstants::FLATPAK_STEAM_PATH = ".var/app/com.valvesoftware.Steam/.local/share/Steam" |
| Flatpak Steam installation path. | |
| constexpr int | SteamConstants::GAME_DETECTION_INTERVAL_SEC = 2 |
| Interval between game process detection scans. | |
| constexpr int | SteamConstants::GAME_GRACE_PERIOD_SEC = 60 |
| Grace period for newly launched games before tracking them. | |
| constexpr int | SteamConstants::GAME_VERIFY_POLL_MS = 500 |
| Polling interval when verifying game has started. | |
| constexpr int | SteamConstants::GAME_VERIFY_TIMEOUT_SEC = 30 |
| Maximum time to wait for game process to appear after launch. | |
| constexpr int | SteamConstants::LIBRARY_CACHE_VALIDITY_SEC = 60 |
| Validity period for library scan cache (seconds). | |
| constexpr const char * | SteamConstants::LIBRARY_FOLDERS_VDF = "libraryfolders.vdf" |
| File containing library folder paths. | |
| constexpr const char * | SteamConstants::LOCAL_CONFIG_VDF = "localconfig.vdf" |
| File containing per-user game settings (launch options, playtime). | |
| constexpr const char * | SteamConstants::LOGIN_USERS_VDF = "loginusers.vdf" |
| File containing user login information. | |
| constexpr int | SteamConstants::MAX_UNINSTALLED_GAMES = 100 |
| Maximum number of uninstalled games to show in library. | |
| constexpr int | SteamConstants::POST_LAUNCH_WAIT_SEC = 2 |
| Wait time after launching game before checking process status. | |
| constexpr int | SteamConstants::POST_SHUTDOWN_DELAY_MS = 1000 |
| Delay after Steam shutdown before attempting restart. | |
| constexpr int | SteamConstants::PROCESS_POLL_INTERVAL_MS = 500 |
| Interval between Steam process status checks. | |
| constexpr int | SteamConstants::PROTON_CACHE_VALIDITY_SEC = 300 |
| Validity period for Proton version cache (seconds). | |
| constexpr int | SteamConstants::RESTART_MAX_ITERATIONS = 20 |
| Maximum iterations for restart polling (total time = iterations * interval). | |
| constexpr int | SteamConstants::RESTART_POLL_INTERVAL_MS = 500 |
| Polling interval when waiting for Steam restart. | |
| constexpr int | SteamConstants::SHUTDOWN_TIMEOUT_SEC = 15 |
| Maximum time to wait for Steam to shutdown before timeout. | |
| constexpr const char * | SteamConstants::SNAP_STEAM_PATH = "snap/steam/common/.local/share/Steam" |
| Snap Steam installation path. | |
| constexpr int | SteamConstants::START_TIMEOUT_SEC = 15 |
| Maximum time to wait for Steam to start before timeout. | |
| constexpr int | SteamConstants::STEAM_INIT_WAIT_SEC = 2 |
| Wait time after Steam starts before launching games. | |
| constexpr const char * | SteamConstants::STEAM_ROOT_ALT1 = ".steam/root" |
| Alternative Steam installation (symlink). | |
| constexpr const char * | SteamConstants::STEAM_ROOT_ALT2 = ".steam/steam" |
| Alternative Steam installation (legacy). | |
| constexpr const char * | SteamConstants::STEAM_ROOT_PATH = ".local/share/Steam" |
| Primary Steam installation directory. | |
| constexpr int | SteamConstants::STEAM_START_CHECK_INTERVAL_MS = 500 |
| Delay when waiting for Steam to start during game launch. | |
| constexpr int | SteamConstants::STEAM_START_MAX_WAIT_SEC = 10 |
| Maximum time to wait for Steam to start when launching game. | |
| constexpr const char * | SteamConstants::STEAMAPPS_DIR = "steamapps" |
| Directory containing installed games. | |
| constexpr const char * | SteamConstants::SYSTEM_COMPAT_TOOLS_PATH1 = "/usr/share/steam/compatibilitytools.d" |
| System compatibility tools directory (distro-provided). | |
| constexpr const char * | SteamConstants::SYSTEM_COMPAT_TOOLS_PATH2 = "/opt/steam/compatibilitytools.d" |
| Alternative system compatibility tools directory. | |
| constexpr const char * | SteamConstants::USERDATA_DIR = "userdata" |
| Directory containing user-specific data. | |
| constexpr const char * | SteamConstants::VDF_BACKUP_SUFFIX = ".backup" |
| Suffix for backup configuration files. | |
| constexpr const char * | SteamConstants::VDF_CLOSE_BRACE = "}" |
| constexpr size_t | SteamConstants::VDF_MAX_FILE_SIZE = 10 * 1024 * 1024 |
| Maximum VDF file size to read (safety limit: 10 MB). | |
| constexpr int | SteamConstants::VDF_MAX_NESTING_DEPTH = 32 |
| Maximum nesting depth for VDF file parsing (prevents infinite loops). | |
| constexpr const char * | SteamConstants::VDF_OPEN_BRACE = "{" |
| Characters that indicate VDF section boundaries. | |
| constexpr size_t | SteamConstants::VDF_READ_BUFFER_SIZE = 4096 |
| Buffer size for reading VDF configuration files. | |