|
game_launcher 1.1.0
Modern Linux game launcher with Steam / Proton / Wine integration
|
Namespaces | |
| namespace | anonymous_namespace{atomic_write.cpp} |
| namespace | anonymous_namespace{image_service.cpp} |
| namespace | anonymous_namespace{notification_service.cpp} |
Enumerations | |
| enum class | LaunchState { Idle , PreparingLaunch , WaitingForSteam , Launching , VerifyingStart , Running , Stopping , Killing , Failed , Completed } |
| enum class | NotificationType { Info , Success , Warning , Error } |
| enum class | SortField { Name , LastPlayed , PlayTime , DateAdded , Status } |
| enum class | SortOrder { Ascending , Descending } |
| enum class | StoreType { Steam , GOG , Epic , Lutris , Manual } |
Functions | |
| bool | atomicWriteFile (const std::filesystem::path &targetPath, std::string_view contents, std::string *errOut=nullptr) |
Atomically and durably write contents to targetPath. | |
| static bool | readBoolSettingFromDisk (const char *key, bool defaultValue) |
| template<typename E> | |
| constexpr E | safeEnumCast (int v, E def, int kMax) noexcept |
| Bounds-checked cast from int to enum. | |
| static std::vector< std::string > | settingsFileSearchPaths () |
| std::string | storeTypeName (StoreType type) |
| Get human-readable store name. | |
|
strong |
| Enumerator | |
|---|---|
| Idle | |
| PreparingLaunch | |
| WaitingForSteam | |
| Launching | |
| VerifyingStart | |
| Running | |
| Stopping | |
| Killing | |
| Failed | |
| Completed | |
Definition at line 28 of file launch_controller.h.
|
strong |
| Enumerator | |
|---|---|
| Info | |
| Success | |
| Warning | |
| Error | |
Definition at line 22 of file notification_service.h.
|
strong |
| Enumerator | |
|---|---|
| Name | |
| LastPlayed | |
| PlayTime | |
| DateAdded | |
| Status | |
Definition at line 60 of file game_library_controller.h.
|
strong |
| Enumerator | |
|---|---|
| Ascending | |
| Descending | |
Definition at line 69 of file game_library_controller.h.
|
strong |
| Enumerator | |
|---|---|
| Steam | |
| GOG | |
| Epic | |
| Lutris | |
| Manual | |
Definition at line 45 of file store_integration_controller.h.
| bool core::atomicWriteFile | ( | const std::filesystem::path & | targetPath, |
| std::string_view | contents, | ||
| std::string * | errOut = nullptr ) |
Atomically and durably write contents to targetPath.
Returns true on success. On failure, leaves targetPath unchanged (any temp file is removed). If errOut is non-null, a human-readable reason is written there.
Implementation notes:
Definition at line 130 of file atomic_write.cpp.
Referenced by anonymous_namespace{runner_download_service.cpp}::saveGitHubCache(), and core::SettingsController::saveSettings().
|
static |
Definition at line 927 of file settings_controller.cpp.
References settingsFileSearchPaths().
Referenced by core::SettingsController::readIsolateMangoHudLogsFromDisk(), core::SettingsController::readSteamMinimizedFromDisk(), and core::SettingsController::readUseSteamLaunchByDefaultFromDisk().
|
constexprnoexcept |
Bounds-checked cast from int to enum.
| E | Target enum type (scoped or unscoped). |
| v | Source integer (typically from SQLite/JSON/IPC). |
| def | Default value to return when v is out of range. |
| kMax | Maximum valid integer value for E (inclusive). Non-negative integers in [0, kMax] are accepted. |
Most enums in this codebase start at 0 and run consecutively. If you have a sparse / non-zero-based enum, this helper isn't appropriate — fall back to a hand-written switch.
Definition at line 44 of file safe_enum_cast.h.
|
static |
Definition at line 887 of file settings_controller.cpp.
Referenced by readBoolSettingFromDisk().