respect the Movie end type when loading .tasproj files outside of tastudio
This commit is contained in:
parent
1f39160999
commit
8900618ce1
|
@ -94,6 +94,7 @@ namespace BizHawk.Client.Common
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: this is a mess, simplify
|
||||||
public void HandleFrameAfter()
|
public void HandleFrameAfter()
|
||||||
{
|
{
|
||||||
if (Movie is ITasMovie tasMovie)
|
if (Movie is ITasMovie tasMovie)
|
||||||
|
@ -101,7 +102,14 @@ namespace BizHawk.Client.Common
|
||||||
tasMovie.GreenzoneCurrentFrame();
|
tasMovie.GreenzoneCurrentFrame();
|
||||||
if (tasMovie.IsPlayingOrFinished() && Movie.Emulator.Frame >= tasMovie.InputLogLength)
|
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)
|
else if (Movie.IsPlaying() && Movie.Emulator.Frame >= Movie.InputLogLength)
|
||||||
|
|
Loading…
Reference in New Issue