TAStudio - fix rewind

This commit is contained in:
andres.delikat 2011-07-26 01:08:38 +00:00
parent de0e7770fc
commit ef33763383
2 changed files with 10 additions and 1 deletions

View File

@ -1391,7 +1391,7 @@ namespace BizHawk.MultiClient
runFrame = true;
}
if (Global.Config.RewindEnabled && Global.ClientControls["Rewind"] || PressRewind)
if (Global.Config.RewindEnabled && Global.ClientControls["Rewind"])// || PressRewind)
{
//* 2 to account for the fact that we need to rewind twice as fast as we play in order to rewind at the target speed
rewindCredits += Global.Config.SpeedPercent * 2;
@ -1408,6 +1408,14 @@ namespace BizHawk.MultiClient
PressRewind = false;
}
else if (PressRewind) //External programs (TAStudio) can use this bool to just rewind 1 frame
{
PressRewind = false;
rewindCredits -= 100;
Rewind(1);
suppressCaptureRewind = true;
runFrame = true;
}
else rewindCredits = 0;
bool genSound = false;

View File

@ -158,6 +158,7 @@ namespace BizHawk.MultiClient
TASView.Clear();
TASView.Update();
ClearPads();
DisplayList();
}
private void exitToolStripMenuItem_Click(object sender, EventArgs e)