TAStudio - edit menu items should also invoke auto-restore

This commit is contained in:
adelikat 2014-09-27 14:37:02 +00:00
parent 25c2507013
commit 505a8cd96c
1 changed files with 19 additions and 14 deletions

View File

@ -203,6 +203,12 @@ namespace BizHawk.Client.EmuHawk
GoToFrame(frame);
}
DoAutoRestore(restoreFrame);
}
}
private void DoAutoRestore(int restoreFrame)
{
if (Global.Config.TAStudioAutoRestoreLastPosition)
{
if (restoreFrame > Global.Emulator.Frame) // Don't unpause if we are already on the desired frame, else runaway seek
@ -212,7 +218,6 @@ namespace BizHawk.Client.EmuHawk
}
}
}
}
private void SetUpColumns()
{
@ -669,7 +674,7 @@ namespace BizHawk.Client.EmuHawk
if (needsToRollback)
{
GoToFrame(TasView.FirstSelectedIndex.Value);
GoToLastEmulatedFrameIfNecessary(TasView.FirstSelectedIndex.Value);
}
else
{
@ -688,7 +693,7 @@ namespace BizHawk.Client.EmuHawk
if (needsToRollback)
{
GoToFrame(TasView.FirstSelectedIndex.Value);
GoToLastEmulatedFrameIfNecessary(TasView.FirstSelectedIndex.Value);
}
else
{
@ -723,7 +728,7 @@ namespace BizHawk.Client.EmuHawk
if (needsToRollback)
{
GoToFrame(rollBackFrame);
GoToLastEmulatedFrameIfNecessary(rollBackFrame);
}
else
{
@ -746,7 +751,7 @@ namespace BizHawk.Client.EmuHawk
if (needsToRollback)
{
GoToFrame(rollBackFrame);
GoToLastEmulatedFrameIfNecessary(rollBackFrame);
}
else
{
@ -769,7 +774,7 @@ namespace BizHawk.Client.EmuHawk
if (needsToRollback)
{
GoToFrame(rollBackFrame);
GoToLastEmulatedFrameIfNecessary(rollBackFrame);
}
else
{
@ -796,7 +801,7 @@ namespace BizHawk.Client.EmuHawk
if (needsToRollback)
{
GoToFrame(insertionFrame);
GoToLastEmulatedFrameIfNecessary(insertionFrame);
}
else
{
@ -814,7 +819,7 @@ namespace BizHawk.Client.EmuHawk
if (needsToRollback)
{
GoToFrame(insertionFrame);
GoToLastEmulatedFrameIfNecessary(insertionFrame);
}
else
{
@ -836,7 +841,7 @@ namespace BizHawk.Client.EmuHawk
if (needsToRollback)
{
GoToFrame(insertionFrame);
GoToLastEmulatedFrameIfNecessary(insertionFrame);
}
else
{