if it is NOT 1 or 3 (so if it is not 1 AND if it is not 3)

This commit is contained in:
Shyanne 2026-01-28 19:21:28 -05:00 committed by LotP
parent 7d8cec626c
commit 82b4874273

View File

@ -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}");
}