mirror of
https://github.com/GreemDev/Ryujinx
synced 2024-12-21 19:36:34 +01:00
Update the statement to inline instead of method call
This commit is contained in:
parent
b832c98289
commit
4d6ad9389e
1 changed files with 4 additions and 9 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue