summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/apm/apm_controller.cpp
diff options
context:
space:
mode:
authorMai M <mathew1800@gmail.com>2022-02-22 02:42:01 +0100
committerGitHub <noreply@github.com>2022-02-22 02:42:01 +0100
commit2f45e999d8b4a7df2edc40bee28c7b4907c9f92a (patch)
tree0dc25d8e699784cd53610ee26106d3fab8dfe77b /src/core/hle/service/apm/apm_controller.cpp
parentMerge pull request #7913 from voidanix/anv-fix (diff)
parentservice: am: Update enum names to match documentation (diff)
downloadyuzu-2f45e999d8b4a7df2edc40bee28c7b4907c9f92a.tar
yuzu-2f45e999d8b4a7df2edc40bee28c7b4907c9f92a.tar.gz
yuzu-2f45e999d8b4a7df2edc40bee28c7b4907c9f92a.tar.bz2
yuzu-2f45e999d8b4a7df2edc40bee28c7b4907c9f92a.tar.lz
yuzu-2f45e999d8b4a7df2edc40bee28c7b4907c9f92a.tar.xz
yuzu-2f45e999d8b4a7df2edc40bee28c7b4907c9f92a.tar.zst
yuzu-2f45e999d8b4a7df2edc40bee28c7b4907c9f92a.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/service/apm/apm_controller.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/core/hle/service/apm/apm_controller.cpp b/src/core/hle/service/apm/apm_controller.cpp
index 98839fe97..187fef2ad 100644
--- a/src/core/hle/service/apm/apm_controller.cpp
+++ b/src/core/hle/service/apm/apm_controller.cpp
@@ -17,8 +17,8 @@ constexpr auto DEFAULT_PERFORMANCE_CONFIGURATION = PerformanceConfiguration::Con
Controller::Controller(Core::Timing::CoreTiming& core_timing_)
: core_timing{core_timing_}, configs{
- {PerformanceMode::Handheld, DEFAULT_PERFORMANCE_CONFIGURATION},
- {PerformanceMode::Docked, DEFAULT_PERFORMANCE_CONFIGURATION},
+ {PerformanceMode::Normal, DEFAULT_PERFORMANCE_CONFIGURATION},
+ {PerformanceMode::Boost, DEFAULT_PERFORMANCE_CONFIGURATION},
} {}
Controller::~Controller() = default;
@@ -63,13 +63,13 @@ void Controller::SetFromCpuBoostMode(CpuBoostMode mode) {
PerformanceConfiguration::Config15,
}};
- SetPerformanceConfiguration(PerformanceMode::Docked,
+ SetPerformanceConfiguration(PerformanceMode::Boost,
BOOST_MODE_TO_CONFIG_MAP.at(static_cast<u32>(mode)));
}
PerformanceMode Controller::GetCurrentPerformanceMode() const {
- return Settings::values.use_docked_mode.GetValue() ? PerformanceMode::Docked
- : PerformanceMode::Handheld;
+ return Settings::values.use_docked_mode.GetValue() ? PerformanceMode::Boost
+ : PerformanceMode::Normal;
}
PerformanceConfiguration Controller::GetCurrentPerformanceConfiguration(PerformanceMode mode) {