Apply e186514c39 for copy mechanism

Also fix the formatting of the string, we want : here not .
This commit is contained in:
CasualPokePlayer 2023-08-07 02:45:54 -07:00
parent e186514c39
commit 20ca53dfd1
1 changed files with 5 additions and 2 deletions

View File

@ -75,13 +75,16 @@ namespace BizHawk.Client.EmuHawk
TurboCheckbox.Checked = _config.TurboSeek; TurboCheckbox.Checked = _config.TurboSeek;
} }
private static string MovieTimeLengthStr(TimeSpan movieLength)
=> movieLength.ToString(movieLength.Days == 0 ? @"hh\:mm\:ss\.fff" : @"dd\:hh\:mm\:ss\.fff");
private void MovieView_QueryItemText(object sender, RetrieveVirtualItemEventArgs e) private void MovieView_QueryItemText(object sender, RetrieveVirtualItemEventArgs e)
{ {
var entry = _movieList[e.ItemIndex]; var entry = _movieList[e.ItemIndex];
e.Item = new ListViewItem(entry.Filename); e.Item = new ListViewItem(entry.Filename);
e.Item.SubItems.Add(entry.SystemID); e.Item.SubItems.Add(entry.SystemID);
e.Item.SubItems.Add(entry.GameName); e.Item.SubItems.Add(entry.GameName);
e.Item.SubItems.Add(entry.TimeLength.ToString(entry.TimeLength.Days == 0 ? @"hh\:mm\:ss\.fff" : @"dd\.hh\:mm\:ss\.fff")); e.Item.SubItems.Add(MovieTimeLengthStr(entry.TimeLength));
} }
private void Run() private void Run()
@ -327,7 +330,7 @@ namespace BizHawk.Client.EmuHawk
.Append(_movieList[index].Filename).Append('\t') .Append(_movieList[index].Filename).Append('\t')
.Append(_movieList[index].SystemID).Append('\t') .Append(_movieList[index].SystemID).Append('\t')
.Append(_movieList[index].GameName).Append('\t') .Append(_movieList[index].GameName).Append('\t')
.Append(_movieList[index].TimeLength.ToString(@"hh\:mm\:ss\.fff")) .Append(MovieTimeLengthStr(_movieList[index].TimeLength))
.AppendLine(); .AppendLine();
} }