1
0
Fork 0
mirror of https://github.com/Ryujinx/Ryujinx.git synced 2024-11-30 23:42:02 +00:00

Fix GetDisplayVersion (#1276)

This commit is contained in:
mageven 2020-05-27 13:52:50 +05:30 committed by GitHub
parent 5dab515c7a
commit 6b55cedd73
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -99,9 +99,9 @@ namespace Ryujinx.HLE.HOS.Services.Am.AppletOE.ApplicationProxyService.Applicati
// GetDisplayVersion() -> nn::oe::DisplayVersion // GetDisplayVersion() -> nn::oe::DisplayVersion
public ResultCode GetDisplayVersion(ServiceCtx context) public ResultCode GetDisplayVersion(ServiceCtx context)
{ {
// FIXME: Need to check correct version on a switch. // This should work as DisplayVersion U8Span always gives a 0x10 size byte array.
context.ResponseData.Write(1L); // If an NACP isn't found, the buffer will be all '\0' which seems to be the correct implementation.
context.ResponseData.Write(0L); context.ResponseData.Write(context.Device.Application.ControlData.Value.DisplayVersion);
return ResultCode.Success; return ResultCode.Success;
} }