From 4d6ad9389eebad67c31d0bf51f9a6cbecfaf0088 Mon Sep 17 00:00:00 2001 From: WilliamWsyHK Date: Wed, 4 Dec 2024 08:05:00 +0800 Subject: [PATCH] Update the statement to inline instead of method call --- src/Ryujinx.HLE/Loaders/Processes/ProcessResult.cs | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/src/Ryujinx.HLE/Loaders/Processes/ProcessResult.cs b/src/Ryujinx.HLE/Loaders/Processes/ProcessResult.cs index e579751d8..8d3b337fa 100644 --- a/src/Ryujinx.HLE/Loaders/Processes/ProcessResult.cs +++ b/src/Ryujinx.HLE/Loaders/Processes/ProcessResult.cs @@ -84,16 +84,11 @@ namespace Ryujinx.HLE.Loaders.Processes return false; } - bool IsFirmware(ulong programId) + bool isFirmware = ProgramId switch { - return programId switch - { - >= 0x0100000000000819 and <= 0x010000000000081C => true, - _ => false - }; - } - - bool isFirmware = IsFirmware(ProgramId); + >= 0x0100000000000819 and <= 0x010000000000081C => true, + _ => false + }; bool isMiiEdit = ProgramId == 0x0100000000001009; string name = !isFirmware