SmvImport - remove useless If

This commit is contained in:
adelikat 2019-11-14 21:03:50 -06:00
parent 2a3c9b741e
commit 8dfbd752ae
1 changed files with 3 additions and 10 deletions

View File

@ -301,17 +301,10 @@ namespace BizHawk.Client.Common.movie.import
}
ushort controllerState = (ushort)(((controllerState1 << 4) & 0x0F00) | controllerState2);
if (player <= BkmMnemonicConstants.Players[controllers.Definition.Name])
for (int button = 0; button < buttons.Length; button++)
{
for (int button = 0; button < buttons.Length; button++)
{
controllers[$"P{player} {buttons[button]}"] =
((controllerState >> button) & 0x1) != 0;
}
}
else if (!Result.Warnings.Any())
{
Result.Warnings.Add($"Controller {player} not supported.");
controllers[$"P{player} {buttons[button]}"] =
((controllerState >> button) & 0x1) != 0;
}
}