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.
This commit is contained in:
◱ PixelyIon 2019-12-11 22:35:02 +05:30 committed by ◱ PixelyIon
parent abaa404baa
commit f7ad017726

View File

@ -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<u32>(constant::HandheldResolutionW);
response.WriteValue<u32>(constant::HandheldResolutionH);
response.Push<u32>(constant::HandheldResolutionW);
response.Push<u32>(constant::HandheldResolutionH);
} else if (operationMode == OperationMode::Docked) {
response.WriteValue<u32>(constant::DockedResolutionW);
response.WriteValue<u32>(constant::DockedResolutionH);
response.Push<u32>(constant::DockedResolutionW);
response.Push<u32>(constant::DockedResolutionH);
}
}