Fixed my previous commit/push; feos' change is back.
Improved "StartAtNearestFrameAndEmulate".
This commit is contained in:
parent
d84da62432
commit
228a24efb0
|
@ -35,6 +35,12 @@ namespace BizHawk.Client.EmuHawk
|
|||
{
|
||||
// Get as close as we can then emulate there
|
||||
StartAtNearestFrameAndEmulate(frame);
|
||||
|
||||
if (TasPlaybackBox.FollowCursor)
|
||||
{
|
||||
SetVisibleIndex(frame);
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
else // Emulate to a future frame
|
||||
|
|
|
@ -535,9 +535,12 @@ namespace BizHawk.Client.EmuHawk
|
|||
|
||||
private void StartAtNearestFrameAndEmulate(int frame)
|
||||
{
|
||||
if (frame == Emulator.Frame)
|
||||
return;
|
||||
|
||||
CurrentTasMovie.SwitchToPlay();
|
||||
KeyValuePair<int, byte[]> closestState = CurrentTasMovie.TasStateManager.GetStateClosestToFrame(frame);
|
||||
if (closestState.Value != null)
|
||||
if (closestState.Value != null && (frame < Emulator.Frame || closestState.Key > Emulator.Frame))
|
||||
{
|
||||
LoadState(closestState);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue