Fix GetDisplayVersion (#1276)
This commit is contained in:
parent
5dab515c7a
commit
6b55cedd73
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue