Do not attempt to report >100% seek progress. (This could happen if the user starts a seek which results in loading a savestate past the frame previously being seeked.)

This commit is contained in:
SuuperW 2020-11-29 12:23:54 -06:00
parent e1186d9253
commit ac93f28939
1 changed files with 4 additions and 0 deletions

View File

@ -351,6 +351,10 @@ namespace BizHawk.Client.EmuHawk
{
progress = 0;
}
else if (progress > 100)
{
progress = 100;
}
_seekBackgroundWorker.ReportProgress((int)progress);
System.Threading.Thread.Sleep(1);