From f697a828c83a1b5d6805239a6e48684e24c8614b Mon Sep 17 00:00:00 2001 From: Morilli <35152647+Morilli@users.noreply.github.com> Date: Thu, 25 May 2023 01:09:05 +0200 Subject: [PATCH] Optimize CreateLogEntry Surely this is safe, right? --- src/BizHawk.Client.Common/movie/bk2/Bk2LogEntryGenerator.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BizHawk.Client.Common/movie/bk2/Bk2LogEntryGenerator.cs b/src/BizHawk.Client.Common/movie/bk2/Bk2LogEntryGenerator.cs index 1ca8f90489..5f79167253 100644 --- a/src/BizHawk.Client.Common/movie/bk2/Bk2LogEntryGenerator.cs +++ b/src/BizHawk.Client.Common/movie/bk2/Bk2LogEntryGenerator.cs @@ -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]