TAStudio - fix rewind
This commit is contained in:
parent
de0e7770fc
commit
ef33763383
|
@ -1391,7 +1391,7 @@ namespace BizHawk.MultiClient
|
||||||
runFrame = true;
|
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
|
//* 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;
|
rewindCredits += Global.Config.SpeedPercent * 2;
|
||||||
|
@ -1408,6 +1408,14 @@ namespace BizHawk.MultiClient
|
||||||
|
|
||||||
PressRewind = false;
|
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;
|
else rewindCredits = 0;
|
||||||
|
|
||||||
bool genSound = false;
|
bool genSound = false;
|
||||||
|
|
|
@ -158,6 +158,7 @@ namespace BizHawk.MultiClient
|
||||||
TASView.Clear();
|
TASView.Clear();
|
||||||
TASView.Update();
|
TASView.Update();
|
||||||
ClearPads();
|
ClearPads();
|
||||||
|
DisplayList();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void exitToolStripMenuItem_Click(object sender, EventArgs e)
|
private void exitToolStripMenuItem_Click(object sender, EventArgs e)
|
||||||
|
|
Loading…
Reference in New Issue