mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-06-28 06:46:24 +02:00
Prefer generic overload when type is known (#430)
This commit is contained in:
parent
8259f790d7
commit
b5483d8fe0
8 changed files with 14 additions and 14 deletions
|
@ -97,7 +97,7 @@ namespace Ryujinx.Ava.UI.ViewModels.Input
|
|||
{
|
||||
if (IsModified)
|
||||
{
|
||||
|
||||
|
||||
_playerIdChoose = value;
|
||||
return;
|
||||
}
|
||||
|
@ -105,7 +105,7 @@ namespace Ryujinx.Ava.UI.ViewModels.Input
|
|||
IsModified = false;
|
||||
_playerId = value;
|
||||
|
||||
if (!Enum.IsDefined(typeof(PlayerIndex), _playerId))
|
||||
if (!Enum.IsDefined<PlayerIndex>(_playerId))
|
||||
{
|
||||
_playerId = PlayerIndex.Player1;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue