respect the Movie end type when loading .tasproj files outside of tastudio

This commit is contained in:
adelikat 2020-07-11 18:52:52 -05:00
parent 1f39160999
commit 8900618ce1
1 changed files with 9 additions and 1 deletions

View File

@ -94,6 +94,7 @@ namespace BizHawk.Client.Common
}
}
// TODO: this is a mess, simplify
public void HandleFrameAfter()
{
if (Movie is ITasMovie tasMovie)
@ -101,7 +102,14 @@ namespace BizHawk.Client.Common
tasMovie.GreenzoneCurrentFrame();
if (tasMovie.IsPlayingOrFinished() && Movie.Emulator.Frame >= tasMovie.InputLogLength)
{
HandleFrameLoopForRecordMode();
if (Settings.MovieEndAction == MovieEndAction.Record)
{
HandleFrameLoopForRecordMode();
}
else
{
HandlePlaybackEnd();
}
}
}
else if (Movie.IsPlaying() && Movie.Emulator.Frame >= Movie.InputLogLength)