diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-10-05 00:38:20 +0200 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-10-05 01:28:34 +0200 |
commit | aacb473aa2eabc2c0bb7264f241de37ccd348325 (patch) | |
tree | 55d3603d676ec15d51411f4058736e841b8ef9f3 | |
parent | common/file_util: Silence -Wswitch (diff) | |
download | yuzu-aacb473aa2eabc2c0bb7264f241de37ccd348325.tar yuzu-aacb473aa2eabc2c0bb7264f241de37ccd348325.tar.gz yuzu-aacb473aa2eabc2c0bb7264f241de37ccd348325.tar.bz2 yuzu-aacb473aa2eabc2c0bb7264f241de37ccd348325.tar.lz yuzu-aacb473aa2eabc2c0bb7264f241de37ccd348325.tar.xz yuzu-aacb473aa2eabc2c0bb7264f241de37ccd348325.tar.zst yuzu-aacb473aa2eabc2c0bb7264f241de37ccd348325.zip |
-rw-r--r-- | src/core/hle/service/apm/controller.cpp | 3 | ||||
-rw-r--r-- | src/core/hle/service/apm/controller.h | 6 |
2 files changed, 5 insertions, 4 deletions
diff --git a/src/core/hle/service/apm/controller.cpp b/src/core/hle/service/apm/controller.cpp index 4376612eb..073d0f6fa 100644 --- a/src/core/hle/service/apm/controller.cpp +++ b/src/core/hle/service/apm/controller.cpp @@ -13,7 +13,7 @@ constexpr PerformanceConfiguration DEFAULT_PERFORMANCE_CONFIGURATION = PerformanceConfiguration::Config7; Controller::Controller(Core::Timing::CoreTiming& core_timing) - : core_timing(core_timing), configs{ + : core_timing{core_timing}, configs{ {PerformanceMode::Handheld, DEFAULT_PERFORMANCE_CONFIGURATION}, {PerformanceMode::Docked, DEFAULT_PERFORMANCE_CONFIGURATION}, } {} @@ -63,6 +63,7 @@ PerformanceConfiguration Controller::GetCurrentPerformanceConfiguration(Performa void Controller::SetClockSpeed(u32 mhz) { LOG_INFO(Service_APM, "called, mhz={:08X}", mhz); // TODO(DarkLordZach): Actually signal core_timing to change clock speed. + // TODO(Rodrigo): Remove [[maybe_unused]] when core_timing is used. } } // namespace Service::APM diff --git a/src/core/hle/service/apm/controller.h b/src/core/hle/service/apm/controller.h index 8ac80eaea..454caa6eb 100644 --- a/src/core/hle/service/apm/controller.h +++ b/src/core/hle/service/apm/controller.h @@ -50,7 +50,7 @@ enum class PerformanceMode : u8 { // system during times of high load -- this simply maps to different PerformanceConfigs to use. class Controller { public: - Controller(Core::Timing::CoreTiming& core_timing); + explicit Controller(Core::Timing::CoreTiming& core_timing); ~Controller(); void SetPerformanceConfiguration(PerformanceMode mode, PerformanceConfiguration config); @@ -62,9 +62,9 @@ public: private: void SetClockSpeed(u32 mhz); - std::map<PerformanceMode, PerformanceConfiguration> configs; + [[maybe_unused]] Core::Timing::CoreTiming& core_timing; - Core::Timing::CoreTiming& core_timing; + std::map<PerformanceMode, PerformanceConfiguration> configs; }; } // namespace Service::APM |