Tastudio - fix a nasty bug, probably

This commit is contained in:
adelikat 2014-10-11 16:58:57 +00:00
parent 86e24011ae
commit d677e6dbe6
2 changed files with 4 additions and 3 deletions

View File

@ -2548,10 +2548,11 @@ namespace BizHawk.Client.EmuHawk
// TODO: for Tastudio debugging, coudl be removed if unused, it is a bad idea for anything else to clal this
public void FrameAdvance()
{
PressFrameAdvance = true;
StepRunLoop_Core();
}
private void StepRunLoop_Core()
private void StepRunLoop_Core(bool force = false)
{
var runFrame = false;
_runloopFrameadvance = false;
@ -2613,7 +2614,7 @@ namespace BizHawk.Client.EmuHawk
var genSound = false;
var coreskipaudio = false;
if (runFrame)
if (runFrame || force)
{
var isFastForwarding = Global.ClientControls["Fast Forward"] || IsTurboing;
var updateFpsString = _runloopLastFf != isFastForwarding;

View File

@ -328,7 +328,7 @@ namespace BizHawk.Client.EmuHawk
if (frame > 0) // We can't emulate up to frame 0!
{
Global.Emulator.FrameAdvance(true);
GlobalWin.MainForm.FrameAdvance();
}
GlobalWin.DisplayManager.NeedsToPaint = true;