diff options
| author | lat9nq <22451773+lat9nq@users.noreply.github.com> | 2023-08-21 16:03:30 -0400 |
|---|---|---|
| committer | lat9nq <22451773+lat9nq@users.noreply.github.com> | 2023-08-22 16:07:52 -0400 |
| commit | 387ede76d2e1e427f6722cbe19a018c95d762748 (patch) | |
| tree | 49f5a327eac0238c0e5197550f4753da592212b7 /src/core/hle/service/apm/apm_controller.cpp | |
| parent | 8a4cb3f902ad335a100728462721c8ea02c0dbe9 (diff) | |
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/apm_controller.cpp')
| -rw-r--r-- | src/core/hle/service/apm/apm_controller.cpp | 6 |
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 @@ #include "common/logging/log.h" #include "common/settings.h" +#include "common/settings_enums.h" #include "core/core_timing.h" #include "core/hle/service/apm/apm_controller.h" @@ -67,8 +68,9 @@ void Controller::SetFromCpuBoostMode(CpuBoostMode mode) { } PerformanceMode Controller::GetCurrentPerformanceMode() const { - return Settings::values.use_docked_mode.GetValue() ? PerformanceMode::Boost - : PerformanceMode::Normal; + return Settings::values.use_docked_mode.GetValue() == Settings::ConsoleMode::Docked + ? PerformanceMode::Boost + : PerformanceMode::Normal; } PerformanceConfiguration Controller::GetCurrentPerformanceConfiguration(PerformanceMode mode) { |
