|
game_launcher 1.1.0
Modern Linux game launcher with Steam / Proton / Wine integration
|
#include "performance_profile_service.h"#include "logger.h"#include <algorithm>#include <ctime>#include <filesystem>#include <fstream>#include <iomanip>#include <sstream>#include <utility>#include <uuid/uuid.h>Go to the source code of this file.
Classes | |
| class | PerformanceProfileService::Impl |
Functions | |
| static std::string | generateUUID () |
| static std::string | jsonEscape (const std::string &str) |
| static std::pair< size_t, size_t > | jsonFindObject (const std::string &json, const std::string &key, size_t start=0, size_t end=std::string::npos) |
| static bool | jsonParseBool (const std::string &json, const std::string &key, size_t start=0, size_t end=std::string::npos, bool def=false) |
| static double | jsonParseDouble (const std::string &json, const std::string &key, size_t start=0, size_t end=std::string::npos, double def=0.0) |
| static int | jsonParseInt (const std::string &json, const std::string &key, size_t start=0, size_t end=std::string::npos, int def=0) |
| static long long | jsonParseLong (const std::string &json, const std::string &key, size_t start=0, size_t end=std::string::npos, long long def=0) |
| static PerformanceProfile | jsonParseProfile (const std::string &json, size_t ps, size_t pe) |
| static std::string | jsonParseStr (const std::string &json, const std::string &key, size_t start=0, size_t end=std::string::npos) |
| std::string | performancePresetName (PerformancePreset preset) |
| Get human-readable preset name. | |
|
static |
|
static |
Definition at line 234 of file performance_profile_service.cpp.
Referenced by PerformanceProfileService::exportProfileToJson(), and PerformanceProfileService::Impl::saveGameProfiles().
|
static |
Definition at line 151 of file performance_profile_service.cpp.
Referenced by jsonParseProfile().
|
static |
Definition at line 132 of file performance_profile_service.cpp.
Referenced by jsonParseProfile().
|
static |
Definition at line 111 of file performance_profile_service.cpp.
Referenced by PerformanceProfileService::Impl::loadGameProfiles().
|
static |
Definition at line 90 of file performance_profile_service.cpp.
Referenced by jsonParseProfile(), and PerformanceProfileService::Impl::loadGameProfiles().
|
static |
Definition at line 70 of file performance_profile_service.cpp.
Referenced by jsonParseProfile().
|
static |
Definition at line 175 of file performance_profile_service.cpp.
References SyncSettings::autoDetect, PerformanceProfile::createdAt, Custom, PerformanceProfile::description, SyncSettings::enableEsync, ScalingSettings::enableFSR, SyncSettings::enableFsync, WrapperSettings::enableGameMode, WrapperSettings::enableGamePerformance, WrapperSettings::enableMangoHud, SyncSettings::enableNTSync, WrapperSettings::enableVkBasalt, FramerateSettings::enableVRR, FramerateSettings::fpsLimit, PerformanceProfile::framerate, ScalingSettings::fsrSharpness, PerformanceProfile::id, ScalingSettings::internalHeight, ScalingSettings::internalWidth, jsonFindObject(), jsonParseBool(), jsonParseInt(), jsonParseLong(), jsonParseStr(), PerformanceProfile::lastUsedAt, PerformanceProfile::name, PerformanceProfile::preset, FramerateSettings::refreshRate, PerformanceProfile::scaling, Silent, PerformanceProfile::sync, PerformanceProfile::useCount, FramerateSettings::useGamescope, and PerformanceProfile::wrappers.
Referenced by PerformanceProfileService::importGameProfiles(), PerformanceProfileService::importProfileFromJson(), PerformanceProfileService::Impl::loadGameProfiles(), and PerformanceProfileService::Impl::loadGlobalProfiles().
|
static |
Definition at line 41 of file performance_profile_service.cpp.
Referenced by jsonParseProfile(), and PerformanceProfileService::Impl::loadGameProfiles().
| std::string performancePresetName | ( | PerformancePreset | preset | ) |
Get human-readable preset name.
Definition at line 1305 of file performance_profile_service.cpp.
References Balanced, BatteryLife, Compatibility, Custom, Performance, Quality, and Silent.
Referenced by PerformanceProfileService::createFromPreset().