summaryrefslogtreecommitdiff
path: root/src/core/hle/service/apm
diff options
context:
space:
mode:
authorGravatar lat9nq2023-08-21 16:03:30 -0400
committerGravatar lat9nq2023-08-22 16:07:52 -0400
commit387ede76d2e1e427f6722cbe19a018c95d762748 (patch)
tree49f5a327eac0238c0e5197550f4753da592212b7 /src/core/hle/service/apm
parentshared_widget: Implement radio groups (diff)
downloadyuzu-387ede76d2e1e427f6722cbe19a018c95d762748.tar.gz
yuzu-387ede76d2e1e427f6722cbe19a018c95d762748.tar.xz
yuzu-387ede76d2e1e427f6722cbe19a018c95d762748.zip
general: Convert use_docked_mode to an enumeration
Allows some special interactions with it in the Qt frontend.
Diffstat (limited to 'src/core/hle/service/apm')
-rw-r--r--src/core/hle/service/apm/apm_controller.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/hle/service/apm/apm_controller.cpp b/src/core/hle/service/apm/apm_controller.cpp
index 227fdd0cf..1656b2e73 100644
--- a/src/core/hle/service/apm/apm_controller.cpp
+++ b/src/core/hle/service/apm/apm_controller.cpp
@@ -7,6 +7,7 @@
7 7
8#include "common/logging/log.h" 8#include "common/logging/log.h"
9#include "common/settings.h" 9#include "common/settings.h"
10#include "common/settings_enums.h"
10#include "core/core_timing.h" 11#include "core/core_timing.h"
11#include "core/hle/service/apm/apm_controller.h" 12#include "core/hle/service/apm/apm_controller.h"
12 13
@@ -67,8 +68,9 @@ void Controller::SetFromCpuBoostMode(CpuBoostMode mode) {
67} 68}
68 69
69PerformanceMode Controller::GetCurrentPerformanceMode() const { 70PerformanceMode Controller::GetCurrentPerformanceMode() const {
70 return Settings::values.use_docked_mode.GetValue() ? PerformanceMode::Boost 71 return Settings::values.use_docked_mode.GetValue() == Settings::ConsoleMode::Docked
71 : PerformanceMode::Normal; 72 ? PerformanceMode::Boost
73 : PerformanceMode::Normal;
72} 74}
73 75
74PerformanceConfiguration Controller::GetCurrentPerformanceConfiguration(PerformanceMode mode) { 76PerformanceConfiguration Controller::GetCurrentPerformanceConfiguration(PerformanceMode mode) {