summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/apm
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-10-17 21:58:22 +0200
committerLioncash <mathew1800@gmail.com>2019-10-17 21:58:25 +0200
commit141d929929c01d2f1baed19bcf526c9a7dce2897 (patch)
treef83982e9be53bfba6d9343e74dcec565176df70a /src/core/hle/service/apm
parentMerge pull request #2980 from lioncash/warn (diff)
downloadyuzu-141d929929c01d2f1baed19bcf526c9a7dce2897.tar
yuzu-141d929929c01d2f1baed19bcf526c9a7dce2897.tar.gz
yuzu-141d929929c01d2f1baed19bcf526c9a7dce2897.tar.bz2
yuzu-141d929929c01d2f1baed19bcf526c9a7dce2897.tar.lz
yuzu-141d929929c01d2f1baed19bcf526c9a7dce2897.tar.xz
yuzu-141d929929c01d2f1baed19bcf526c9a7dce2897.tar.zst
yuzu-141d929929c01d2f1baed19bcf526c9a7dce2897.zip
Diffstat (limited to 'src/core/hle/service/apm')
-rw-r--r--src/core/hle/service/apm/controller.cpp2
-rw-r--r--src/core/hle/service/apm/controller.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/service/apm/controller.cpp b/src/core/hle/service/apm/controller.cpp
index 073d0f6fa..d9e8d247d 100644
--- a/src/core/hle/service/apm/controller.cpp
+++ b/src/core/hle/service/apm/controller.cpp
@@ -48,7 +48,7 @@ void Controller::SetFromCpuBoostMode(CpuBoostMode mode) {
BOOST_MODE_TO_CONFIG_MAP.at(static_cast<u32>(mode)));
}
-PerformanceMode Controller::GetCurrentPerformanceMode() {
+PerformanceMode Controller::GetCurrentPerformanceMode() const {
return Settings::values.use_docked_mode ? PerformanceMode::Docked : PerformanceMode::Handheld;
}
diff --git a/src/core/hle/service/apm/controller.h b/src/core/hle/service/apm/controller.h
index 454caa6eb..af0c4cd34 100644
--- a/src/core/hle/service/apm/controller.h
+++ b/src/core/hle/service/apm/controller.h
@@ -56,7 +56,7 @@ public:
void SetPerformanceConfiguration(PerformanceMode mode, PerformanceConfiguration config);
void SetFromCpuBoostMode(CpuBoostMode mode);
- PerformanceMode GetCurrentPerformanceMode();
+ PerformanceMode GetCurrentPerformanceMode() const;
PerformanceConfiguration GetCurrentPerformanceConfiguration(PerformanceMode mode);
private: