hle: Throw a ServiceNotImplementedException instead of ArgumentException if any number arguments provided to ILibraryAppletAccessor are nonzero

This commit is contained in:
GreemDev 2025-10-28 15:37:59 -05:00 committed by KeatonTheBot
parent 1a3b407839
commit 90cb9d42db

View file

@ -1,4 +1,5 @@
using Ryujinx.Common.Logging;
using Ryujinx.HLE.Exceptions;
using Ryujinx.HLE.HOS.Applets;
using Ryujinx.HLE.HOS.Ipc;
using Ryujinx.HLE.HOS.Kernel;
@ -129,9 +130,9 @@ namespace Ryujinx.HLE.HOS.Services.Am.AppletAE.AllSystemAppletProxiesService.Lib
if (context.RequestData.ReadUInt64() != 0 || context.RequestData.ReadUInt64() != 0 ||
context.RequestData.ReadUInt64() != 0 || context.RequestData.ReadUInt64() != 0)
{
throw new ArgumentException("Invalid data: values are not 0");
throw new ServiceNotImplementedException(this, context, $"{GetType().FullName}: 90");
}
Logger.Stub?.PrintStub(LogClass.ServiceAm);
return ResultCode.Success;
}