From f7ad0177266e61e61b3cac892a47f854fa2b254f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=97=B1=20PixelyIon?= Date: Wed, 11 Dec 2019 22:35:02 +0530 Subject: [PATCH] Adapt GetDefaultDisplayResolution to Push/Pop System The PR: https://github.com/skyline-emu/skyline/pull/13 added in GetDefaultDisplayResolution but it used the older WriteValue function to write the data back. Moving to the Push/Pop system fixes this. --- app/src/main/cpp/skyline/services/am/appletController.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/main/cpp/skyline/services/am/appletController.cpp b/app/src/main/cpp/skyline/services/am/appletController.cpp index 8a5862d8..23401c68 100644 --- a/app/src/main/cpp/skyline/services/am/appletController.cpp +++ b/app/src/main/cpp/skyline/services/am/appletController.cpp @@ -48,11 +48,11 @@ namespace skyline::service::am { void ICommonStateGetter::GetDefaultDisplayResolution(type::KSession& session, ipc::IpcRequest& request, ipc::IpcResponse& response) { if (operationMode == OperationMode::Handheld) { - response.WriteValue(constant::HandheldResolutionW); - response.WriteValue(constant::HandheldResolutionH); + response.Push(constant::HandheldResolutionW); + response.Push(constant::HandheldResolutionH); } else if (operationMode == OperationMode::Docked) { - response.WriteValue(constant::DockedResolutionW); - response.WriteValue(constant::DockedResolutionH); + response.Push(constant::DockedResolutionW); + response.Push(constant::DockedResolutionH); } }