From 69a938f29bc299299c8c215f5d8e666fef0f418e Mon Sep 17 00:00:00 2001 From: YoshiRulz Date: Thu, 13 Feb 2025 08:39:44 +1000 Subject: [PATCH] Pad frame indices in TAStudio to 5 digits from the start --- .../tools/TAStudio/TAStudio.ListView.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.ListView.cs b/src/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.ListView.cs index 3c3bad05f9..d5f74ea092 100644 --- a/src/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.ListView.cs +++ b/src/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.ListView.cs @@ -296,7 +296,9 @@ namespace BizHawk.Client.EmuHawk /// with leading zeroes such that every frame in the movie will be printed with the same number of digits private string FrameToStringPadded(int index) - => index.ToString(_formatCache[NumberExtensions.Log10(Math.Max(CurrentTasMovie.InputLogLength, 1))]); + => index.ToString(_formatCache[Math.Max( + 4, + NumberExtensions.Log10(Math.Max(CurrentTasMovie.InputLogLength, 1)))]); private void TasView_QueryItemText(int index, RollColumn column, out string text, ref int offsetX, ref int offsetY) {