fixed stub and updated exception thrown
This commit is contained in:
parent
9f9808cbdb
commit
57e0aa69a8
@ -5,6 +5,7 @@ using Ryujinx.Common.Logging;
|
|||||||
using Ryujinx.Common.Memory;
|
using Ryujinx.Common.Memory;
|
||||||
using Ryujinx.Common.Utilities;
|
using Ryujinx.Common.Utilities;
|
||||||
using Ryujinx.Cpu;
|
using Ryujinx.Cpu;
|
||||||
|
using Ryujinx.HLE.Exceptions;
|
||||||
using Ryujinx.HLE.HOS.Ipc;
|
using Ryujinx.HLE.HOS.Ipc;
|
||||||
using Ryujinx.HLE.HOS.Kernel.Threading;
|
using Ryujinx.HLE.HOS.Kernel.Threading;
|
||||||
using Ryujinx.HLE.HOS.Services.Ldn.Types;
|
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.
|
// On NX only input value 1 or 3 is allowed, with an error being thrown otherwise.
|
||||||
if (protocolValue != 1 || protocolValue != 3)
|
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.Info?.PrintMsg(LogClass.ServiceLdn, $"Protocol value: {protocolValue}");
|
||||||
Logger.Stub?.PrintMsg(LogClass.ServiceLdn, "IUserLocalCommunicationService SetProtocol: Stubbed.");
|
Logger.Stub?.PrintStub(LogClass.ServiceLdn);
|
||||||
return ResultCode.Success;
|
return ResultCode.Success;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user