simplify some tastudio logic
This commit is contained in:
parent
5366b854a6
commit
cd0c237e31
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue