|
game_launcher 1.1.0
Modern Linux game launcher with Steam / Proton / Wine integration
|
Public Member Functions | |
| Impl ()=default | |
| bool | initialize (const std::string &dataDir) |
| void | loadAllProfiles () |
| void | loadGameProfiles (const std::string &gameId) |
| void | loadGlobalProfiles () |
| bool | saveGameProfiles (const std::string &gameId) |
Public Attributes | |
| std::string | dataDir_ |
| std::map< std::string, GamePerformanceData > | gameProfiles_ |
| std::vector< PerformanceProfile > | globalProfiles_ |
| bool | initialized_ = false |
| OnProfileChanged | onProfileChanged_ |
Definition at line 268 of file performance_profile_service.cpp.
|
default |
|
inline |
Definition at line 273 of file performance_profile_service.cpp.
References dataDir_, Logger::error(), initialized_, loadAllProfiles(), and loadGlobalProfiles().
|
inline |
Definition at line 298 of file performance_profile_service.cpp.
References dataDir_, loadGameProfiles(), and Logger::warn().
Referenced by initialize().
|
inline |
Definition at line 320 of file performance_profile_service.cpp.
References GamePerformanceData::activeProfileId, GamePerformanceData::avgFps, GamePerformanceData::avgFrametime, dataDir_, Logger::error(), GamePerformanceData::gameId, gameProfiles_, PerformanceProfile::id, jsonParseDouble(), jsonParseInt(), jsonParseProfile(), jsonParseStr(), GamePerformanceData::profiles, and GamePerformanceData::sessionCount.
Referenced by loadAllProfiles().
|
inline |
Definition at line 399 of file performance_profile_service.cpp.
References dataDir_, globalProfiles_, PerformanceProfile::id, jsonParseProfile(), and Logger::warn().
Referenced by initialize().
|
inline |
Definition at line 430 of file performance_profile_service.cpp.
References dataDir_, Logger::error(), gameProfiles_, and jsonEscape().
| std::string PerformanceProfileService::Impl::dataDir_ |
Definition at line 533 of file performance_profile_service.cpp.
Referenced by initialize(), loadAllProfiles(), loadGameProfiles(), loadGlobalProfiles(), and saveGameProfiles().
| std::map<std::string, GamePerformanceData> PerformanceProfileService::Impl::gameProfiles_ |
Definition at line 534 of file performance_profile_service.cpp.
Referenced by loadGameProfiles(), and saveGameProfiles().
| std::vector<PerformanceProfile> PerformanceProfileService::Impl::globalProfiles_ |
Definition at line 535 of file performance_profile_service.cpp.
Referenced by loadGlobalProfiles().
| bool PerformanceProfileService::Impl::initialized_ = false |
Definition at line 532 of file performance_profile_service.cpp.
Referenced by initialize().
| OnProfileChanged PerformanceProfileService::Impl::onProfileChanged_ |
Definition at line 536 of file performance_profile_service.cpp.