When the "Pause" movie end option is selected, fix bug where unpausing keeps repausing the emulator, now it will pause on movie end, and advancing further will stop and close the movie

This commit is contained in:
adelikat 2015-01-03 03:27:17 +00:00
parent feef0e7e4c
commit 2f8a59a219
1 changed files with 8 additions and 1 deletions

View File

@ -161,7 +161,14 @@ namespace BizHawk.Client.Common
Movie.SwitchToRecord();
break;
case MovieEndAction.Pause:
PauseCallback(); // TODO: one frame ago
if (Global.Emulator.Frame >= Movie.InputLogLength)
{
Movie.Stop();
}
else
{
PauseCallback();
}
break;
default:
case MovieEndAction.Finish: