Optimize CreateLogEntry

Surely this is safe, right?
This commit is contained in:
Morilli 2023-05-25 01:09:05 +02:00 committed by adelikat
parent 8a46af0b25
commit f697a828c8
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ namespace BizHawk.Client.Common
var val = createEmpty ? range.Neutral : _source.AxisValue(button);
sb.Append(val.ToString().PadLeft(5, ' ')).Append(',');
}
else if (_source.Definition.BoolButtons.Contains(button))
else
{
sb.Append(!createEmpty && _source.IsPressed(button)
? _mnemonics[button]