fixed stub and updated exception thrown
This commit is contained in:
parent
a17d00e3f9
commit
ede1cdae8d
@ -5,6 +5,7 @@ using Ryujinx.Common.Logging;
|
||||
using Ryujinx.Common.Memory;
|
||||
using Ryujinx.Common.Utilities;
|
||||
using Ryujinx.Cpu;
|
||||
using Ryujinx.HLE.Exceptions;
|
||||
using Ryujinx.HLE.HOS.Ipc;
|
||||
using Ryujinx.HLE.HOS.Kernel.Threading;
|
||||
using Ryujinx.HLE.HOS.Services.Ldn.Types;
|
||||
@ -496,11 +497,11 @@ namespace Ryujinx.HLE.HOS.Services.Ldn.UserServiceCreator
|
||||
// On NX only input value 1 or 3 is allowed, with an error being thrown otherwise.
|
||||
if (protocolValue != 1 || protocolValue != 3)
|
||||
{
|
||||
throw new NotSupportedException($"Protocol value is {protocolValue}!!");
|
||||
throw new ServiceNotImplementedException(this, context, $"{GetType().FullName}: Protocol value is {protocolValue}!!");
|
||||
}
|
||||
|
||||
Logger.Info?.PrintMsg(LogClass.ServiceLdn, $"Protocol value: {protocolValue}");
|
||||
Logger.Stub?.PrintMsg(LogClass.ServiceLdn, "IUserLocalCommunicationService SetProtocol: Stubbed.");
|
||||
Logger.Stub?.PrintStub(LogClass.ServiceLdn);
|
||||
return ResultCode.Success;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user