aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/service/apm/controller.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-10-17 15:58:22 -0400
committerLioncash <mathew1800@gmail.com>2019-10-17 15:58:25 -0400
commit141d929929c01d2f1baed19bcf526c9a7dce2897 (patch)
treef83982e9be53bfba6d9343e74dcec565176df70a /src/core/hle/service/apm/controller.cpp
parent9fe8072c67f0a99c68b95c69ea19c2334fd0258f (diff)
apm/controller: Make GetCurrentPerformanceMode() a const member function
This doesn't modify instance state, so it can be made const qualified.
Diffstat (limited to 'src/core/hle/service/apm/controller.cpp')
-rw-r--r--src/core/hle/service/apm/controller.cpp2
1 files changed, 1 insertions, 1 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;
}