simplify some tastudio logic

This commit is contained in:
adelikat 2019-06-15 16:26:16 -05:00
parent 5366b854a6
commit cd0c237e31
1 changed files with 5 additions and 3 deletions

View File

@ -57,10 +57,12 @@ namespace BizHawk.Client.EmuHawk
{
TastudioPlayMode();
int lastState = CurrentTasMovie.TasStateManager.GetStateClosestToFrame(frame).Key; // Simply getting the last state doesn't work if that state is the frame. [dispaly isn't saved in the state, need to emulate to frame]
if (lastState > Emulator.Frame)
// Simply getting the last state doesn't work if that state is the frame.
// display isn't saved in the state, need to emulate to frame
var lastState = CurrentTasMovie.TasStateManager.GetStateClosestToFrame(frame);
if (lastState.Key > Emulator.Frame)
{
LoadState(CurrentTasMovie.TasStateManager[lastState]); // STATE ACCESS
LoadState(lastState);
}
StartSeeking(frame);