Update the statement to inline instead of method call

This commit is contained in:
WilliamWsyHK 2024-12-04 08:05:00 +08:00
parent b832c98289
commit 4d6ad9389e

View file

@ -84,16 +84,11 @@ namespace Ryujinx.HLE.Loaders.Processes
return false;
}
bool IsFirmware(ulong programId)
{
return programId switch
bool isFirmware = ProgramId switch
{
>= 0x0100000000000819 and <= 0x010000000000081C => true,
_ => false
};
}
bool isFirmware = IsFirmware(ProgramId);
bool isMiiEdit = ProgramId == 0x0100000000001009;
string name = !isFirmware