From 82b4874273ebf32e72afd381f01eede98fc6eeb1 Mon Sep 17 00:00:00 2001 From: Shyanne Date: Wed, 28 Jan 2026 19:21:28 -0500 Subject: [PATCH] if it is NOT 1 or 3 (so if it is not 1 AND if it is not 3) --- .../Ldn/UserServiceCreator/IUserLocalCommunicationService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Ryujinx.HLE/HOS/Services/Ldn/UserServiceCreator/IUserLocalCommunicationService.cs b/src/Ryujinx.HLE/HOS/Services/Ldn/UserServiceCreator/IUserLocalCommunicationService.cs index fd591ae6d..c36fda775 100644 --- a/src/Ryujinx.HLE/HOS/Services/Ldn/UserServiceCreator/IUserLocalCommunicationService.cs +++ b/src/Ryujinx.HLE/HOS/Services/Ldn/UserServiceCreator/IUserLocalCommunicationService.cs @@ -496,7 +496,7 @@ namespace Ryujinx.HLE.HOS.Services.Ldn.UserServiceCreator uint protocolValue = context.RequestData.ReadUInt32(); // 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 ArgumentException($"{GetType().FullName}: Protocol value is not 1 or 3!! Protocol value: {protocolValue}"); }