Tastudio - don't attempt to load the nearest greenzone if there isn't even a single greenzone entry
This commit is contained in:
parent
d6859b64a3
commit
c18410d4af
|
@ -334,9 +334,14 @@ namespace BizHawk.Client.EmuHawk
|
||||||
{
|
{
|
||||||
// TODO: get the last greenzone frame and go there
|
// TODO: get the last greenzone frame and go there
|
||||||
_currentTasMovie.SwitchToPlay();
|
_currentTasMovie.SwitchToPlay();
|
||||||
Global.Emulator.LoadStateBinary(new BinaryReader(new MemoryStream(_currentTasMovie[_currentTasMovie.LastEmulatedFrame].State.ToArray())));
|
|
||||||
|
if (_currentTasMovie.LastEmulatedFrame > 0)
|
||||||
|
{
|
||||||
|
Global.Emulator.LoadStateBinary(new BinaryReader(new MemoryStream(_currentTasMovie[_currentTasMovie.LastEmulatedFrame].State.ToArray())));
|
||||||
|
}
|
||||||
|
|
||||||
GlobalWin.MainForm.UnpauseEmulator();
|
GlobalWin.MainForm.UnpauseEmulator();
|
||||||
if(Global.Config.TAStudioAutoPause)
|
if (Global.Config.TAStudioAutoPause)
|
||||||
{
|
{
|
||||||
GlobalWin.MainForm.PauseOnFrame = _currentTasMovie.LastEmulatedFrame;
|
GlobalWin.MainForm.PauseOnFrame = _currentTasMovie.LastEmulatedFrame;
|
||||||
}
|
}
|
||||||
|
@ -344,7 +349,6 @@ namespace BizHawk.Client.EmuHawk
|
||||||
{
|
{
|
||||||
GlobalWin.MainForm.PauseOnFrame = frame;
|
GlobalWin.MainForm.PauseOnFrame = frame;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
RefreshDialog();
|
RefreshDialog();
|
||||||
|
|
Loading…
Reference in New Issue