TASEdit - fix frame advance button
This commit is contained in:
parent
40ca3e1616
commit
c55e863b15
|
@ -1616,10 +1616,10 @@ namespace BizHawk.MultiClient
|
||||||
double frameAdvanceTimestampDelta = (now - FrameAdvanceTimestamp).TotalMilliseconds;
|
double frameAdvanceTimestampDelta = (now - FrameAdvanceTimestamp).TotalMilliseconds;
|
||||||
bool frameProgressTimeElapsed = Global.Config.FrameProgressDelayMs < frameAdvanceTimestampDelta;
|
bool frameProgressTimeElapsed = Global.Config.FrameProgressDelayMs < frameAdvanceTimestampDelta;
|
||||||
|
|
||||||
if (Global.Emulator.IsLagFrame && frameProgressTimeElapsed && Global.Config.SkipLagFrame)
|
if (Global.Emulator.IsLagFrame && frameProgressTimeElapsed && Global.Config.SkipLagFrame)
|
||||||
{
|
{
|
||||||
Global.Emulator.FrameAdvance(true);
|
Global.Emulator.FrameAdvance(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Global.ClientControls["Frame Advance"] || PressFrameAdvance)
|
if (Global.ClientControls["Frame Advance"] || PressFrameAdvance)
|
||||||
{
|
{
|
||||||
|
@ -1652,11 +1652,11 @@ namespace BizHawk.MultiClient
|
||||||
}
|
}
|
||||||
FrameAdvanceTimestamp = DateTime.MinValue;
|
FrameAdvanceTimestamp = DateTime.MinValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!EmulatorPaused)
|
if (!EmulatorPaused)
|
||||||
{
|
{
|
||||||
runFrame = true;
|
runFrame = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Global.Config.RewindEnabled && Global.ClientControls["Rewind"] || PressRewind)
|
if (Global.Config.RewindEnabled && Global.ClientControls["Rewind"] || PressRewind)
|
||||||
{
|
{
|
||||||
|
@ -1674,8 +1674,8 @@ namespace BizHawk.MultiClient
|
||||||
#if WINDOWS
|
#if WINDOWS
|
||||||
if (LuaConsole1.IsRunning())
|
if (LuaConsole1.IsRunning())
|
||||||
{
|
{
|
||||||
Global.MainForm.MainWait.Set();
|
Global.MainForm.MainWait.Set();
|
||||||
LuaConsole1.WaitOne();
|
LuaConsole1.WaitOne();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -1782,6 +1782,7 @@ namespace BizHawk.MultiClient
|
||||||
Global.AutoFireController.IncrementStarts();
|
Global.AutoFireController.IncrementStarts();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
PressFrameAdvance = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (genSound)
|
if (genSound)
|
||||||
|
|
Loading…
Reference in New Issue