TAStudio - more GoToFrame logic, now smoothly goes frame play to record when advancing past the end of the movie. The code is sloppy and wasteful in circumstances, but it works (probably)

This commit is contained in:
adelikat 2014-07-17 23:38:01 +00:00
parent b6138325ea
commit 5506f91e27
1 changed files with 6 additions and 1 deletions

View File

@ -347,7 +347,12 @@ namespace BizHawk.Client.EmuHawk
}
else // Emulate to a future frame
{
// TODO
// TODO: get the last greenzone frame and go there
_tas.SwitchToPlay(); // TODO: stop copy/pasting this logic
Global.Emulator.LoadStateBinary(new BinaryReader(new MemoryStream(_tas[_tas.LastEmulatedFrame].State.ToArray())));
GlobalWin.MainForm.UnpauseEmulator();
StopFrame = frame;
// TODO: if turbo seek, ramp up the speed
}
}