From ede1cdae8de351b52e24e4140ab3c5b3dbdec4d3 Mon Sep 17 00:00:00 2001 From: Shyanne Date: Wed, 28 Jan 2026 00:43:45 -0500 Subject: [PATCH] fixed stub and updated exception thrown --- .../Ldn/UserServiceCreator/IUserLocalCommunicationService.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Ryujinx.HLE/HOS/Services/Ldn/UserServiceCreator/IUserLocalCommunicationService.cs b/src/Ryujinx.HLE/HOS/Services/Ldn/UserServiceCreator/IUserLocalCommunicationService.cs index abf4153d0..d891a32a5 100644 --- a/src/Ryujinx.HLE/HOS/Services/Ldn/UserServiceCreator/IUserLocalCommunicationService.cs +++ b/src/Ryujinx.HLE/HOS/Services/Ldn/UserServiceCreator/IUserLocalCommunicationService.cs @@ -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; }