aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/hle/service/am/am.cpp
diff options
context:
space:
mode:
authorlat9nq <[email protected]>2023-08-22 21:58:23 -0400
committerlat9nq <[email protected]>2023-08-22 21:58:23 -0400
commit3c45452fae7f33d0534c144c5f588ef98f0a1346 (patch)
tree02ba43c8405ae2ca8b80940653cb558d0db6191a /src/core/hle/service/am/am.cpp
parentab862207d7f2de712e1f711141d20921b414cdf7 (diff)
downloadyuzu-mainline-3c45452fae7f33d0534c144c5f588ef98f0a1346.tar.gz
yuzu-mainline-3c45452fae7f33d0534c144c5f588ef98f0a1346.zip
general: Use console mode helper across project
Diffstat (limited to 'src/core/hle/service/am/am.cpp')
-rw-r--r--src/core/hle/service/am/am.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/core/hle/service/am/am.cpp b/src/core/hle/service/am/am.cpp
index 81df91a2d..da33f0e44 100644
--- a/src/core/hle/service/am/am.cpp
+++ b/src/core/hle/service/am/am.cpp
@@ -834,7 +834,7 @@ void ICommonStateGetter::GetDefaultDisplayResolution(HLERequestContext& ctx) {
IPC::ResponseBuilder rb{ctx, 4};
rb.Push(ResultSuccess);
- if (Settings::values.use_docked_mode.GetValue() == Settings::ConsoleMode::Docked) {
+ if (Settings::IsDockedMode()) {
rb.Push(static_cast<u32>(Service::VI::DisplayResolution::DockedWidth));
rb.Push(static_cast<u32>(Service::VI::DisplayResolution::DockedHeight));
} else {
@@ -922,8 +922,7 @@ void IStorage::Open(HLERequestContext& ctx) {
}
void ICommonStateGetter::GetOperationMode(HLERequestContext& ctx) {
- const bool use_docked_mode{Settings::values.use_docked_mode.GetValue() ==
- Settings::ConsoleMode::Docked};
+ const bool use_docked_mode{Settings::IsDockedMode()};
LOG_DEBUG(Service_AM, "called, use_docked_mode={}", use_docked_mode);
IPC::ResponseBuilder rb{ctx, 3};