misc: chore: Merge into pattern

This commit is contained in:
KeatonTheBot
2025-09-25 17:04:08 -05:00
parent a6f3f0718d
commit 48ba1cc9ed
161 changed files with 470 additions and 550 deletions
@@ -297,7 +297,7 @@ namespace Ryujinx.Horizon.Sdk.Codec.Detail
{
const int SilkDecoderSize = 0x2160;
if (channelsCount < 1 || channelsCount > 2)
if (channelsCount is < 1 or > 2)
{
return 0;
}
@@ -232,7 +232,7 @@ namespace Ryujinx.Horizon.Sdk.Ngc.Detail
text[startOffset] = 0xc1;
text[startOffset + 1] = 0xc1;
}
else if (maskMode == MaskMode.Overwrite || maskMode == MaskMode.ReplaceByOneCharacter)
else if (maskMode is MaskMode.Overwrite or MaskMode.ReplaceByOneCharacter)
{
text[startOffset] = 0xc0;
text[startOffset + 1] = 0xc0;
@@ -62,8 +62,7 @@ namespace Ryujinx.Horizon.Sdk.Sf.Cmif
Result commandResult = commandHandler.Invoke(ref outHeader, ref context, inMessageRawData);
if (commandResult.Module == SfResult.ModuleId ||
commandResult.Module == HipcResult.ModuleId)
if (commandResult.Module is SfResult.ModuleId or HipcResult.ModuleId)
{
Logger.Warning?.Print(LogClass.KernelIpc, $"{commandHandler.MethodName} returned error {commandResult}");
}