diff options
author | Morph <39850852+Morph1984@users.noreply.github.com> | 2020-09-28 16:00:15 +0200 |
---|---|---|
committer | Morph <39850852+Morph1984@users.noreply.github.com> | 2020-11-16 05:33:20 +0100 |
commit | 8f2959f6804e0d1048ecaa6f4046622e069fe7db (patch) | |
tree | 06451ddcfcc588d2803eaa908afa085bea7782de /src/core/hle/service/am | |
parent | udp/client: Reduce testing period to 5 seconds (diff) | |
download | yuzu-8f2959f6804e0d1048ecaa6f4046622e069fe7db.tar yuzu-8f2959f6804e0d1048ecaa6f4046622e069fe7db.tar.gz yuzu-8f2959f6804e0d1048ecaa6f4046622e069fe7db.tar.bz2 yuzu-8f2959f6804e0d1048ecaa6f4046622e069fe7db.tar.lz yuzu-8f2959f6804e0d1048ecaa6f4046622e069fe7db.tar.xz yuzu-8f2959f6804e0d1048ecaa6f4046622e069fe7db.tar.zst yuzu-8f2959f6804e0d1048ecaa6f4046622e069fe7db.zip |
Diffstat (limited to 'src/core/hle/service/am')
-rw-r--r-- | src/core/hle/service/am/am.cpp | 4 | ||||
-rw-r--r-- | src/core/hle/service/am/applets/controller.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/core/hle/service/am/am.cpp b/src/core/hle/service/am/am.cpp index 2ce742e35..eb097738a 100644 --- a/src/core/hle/service/am/am.cpp +++ b/src/core/hle/service/am/am.cpp @@ -751,7 +751,7 @@ void ICommonStateGetter::GetDefaultDisplayResolution(Kernel::HLERequestContext& IPC::ResponseBuilder rb{ctx, 4}; rb.Push(RESULT_SUCCESS); - if (Settings::values.use_docked_mode) { + if (Settings::values.use_docked_mode.GetValue()) { rb.Push(static_cast<u32>(Service::VI::DisplayResolution::DockedWidth) * static_cast<u32>(Settings::values.resolution_factor.GetValue())); rb.Push(static_cast<u32>(Service::VI::DisplayResolution::DockedHeight) * @@ -824,7 +824,7 @@ void IStorage::Open(Kernel::HLERequestContext& ctx) { } void ICommonStateGetter::GetOperationMode(Kernel::HLERequestContext& ctx) { - const bool use_docked_mode{Settings::values.use_docked_mode}; + const bool use_docked_mode{Settings::values.use_docked_mode.GetValue()}; LOG_DEBUG(Service_AM, "called, use_docked_mode={}", use_docked_mode); IPC::ResponseBuilder rb{ctx, 3}; diff --git a/src/core/hle/service/am/applets/controller.cpp b/src/core/hle/service/am/applets/controller.cpp index a0152b4ea..43b79412e 100644 --- a/src/core/hle/service/am/applets/controller.cpp +++ b/src/core/hle/service/am/applets/controller.cpp @@ -222,7 +222,7 @@ void Controller::Execute() { void Controller::ConfigurationComplete() { ControllerSupportResultInfo result_info{}; - const auto& players = Settings::values.players; + const auto& players = Settings::values.players.GetValue(); // If enable_single_mode is enabled, player_count is 1 regardless of any other parameters. // Otherwise, only count connected players from P1-P8. |