Fix bug where movie was failing to go into finished mode and would crash instead, fixes issue #429

This commit is contained in:
adelikat 2015-06-14 13:29:19 +00:00
parent 9a02a5cac0
commit 55b4991d8e
1 changed files with 7 additions and 0 deletions

View File

@ -136,9 +136,16 @@ namespace BizHawk.Client.Common
{
var input = Movie.GetInputState(Global.Emulator.Frame);
// adelikat: TODO: this is likely the source of frame 0 TAStudio bugs, I think the intent is to check if the movie is 0 length?
if (Global.Emulator.Frame == 0) // Hacky
HandleMovieAfterFrameLoop(); // Frame 0 needs to be handled.
if (input == null)
{
HandleMovieAfterFrameLoop();
return;
}
MovieControllerAdapter.LatchFromSource(input);
if (MultiTrack.IsActive)
{