Put Lua FrameBefore and FrameAfter event firing into the event loop instead of tools, so that it isn't bypassed when turboing. Probably works, couldn't test.
This commit is contained in:
parent
55f87af633
commit
650607cfd7
|
@ -2500,8 +2500,11 @@ namespace BizHawk.Client.EmuHawk
|
|||
Global.ClickyVirtualPadController.FrameTick();
|
||||
Global.LuaAndAdaptor.FrameTick();
|
||||
|
||||
//zero 03-may-2014 - there is a bug in here: lua should be updating even when turboing
|
||||
//please remove lua event-firing from gui viewing tools -related code
|
||||
if (GlobalWin.Tools.Has<LuaConsole>())
|
||||
{
|
||||
GlobalWin.Tools.LuaConsole.LuaImp.CallFrameBeforeEvent();
|
||||
}
|
||||
|
||||
if (!isTurboing)
|
||||
{
|
||||
GlobalWin.Tools.UpdateToolsBefore();
|
||||
|
@ -2565,6 +2568,12 @@ namespace BizHawk.Client.EmuHawk
|
|||
}
|
||||
|
||||
PressFrameAdvance = false;
|
||||
|
||||
if (GlobalWin.Tools.Has<LuaConsole>())
|
||||
{
|
||||
GlobalWin.Tools.LuaConsole.LuaImp.CallFrameAfterEvent();
|
||||
}
|
||||
|
||||
if (!isTurboing)
|
||||
{
|
||||
UpdateToolsAfter();
|
||||
|
|
|
@ -229,8 +229,6 @@ namespace BizHawk.Client.EmuHawk
|
|||
{
|
||||
LuaConsole.StartLuaDrawing();
|
||||
}
|
||||
|
||||
LuaConsole.LuaImp.CallFrameBeforeEvent();
|
||||
}
|
||||
|
||||
UpdateBefore();
|
||||
|
@ -247,7 +245,6 @@ namespace BizHawk.Client.EmuHawk
|
|||
|
||||
if (Has<LuaConsole>())
|
||||
{
|
||||
LuaConsole.LuaImp.CallFrameAfterEvent();
|
||||
if (!fromLua)
|
||||
{
|
||||
LuaConsole.EndLuaDrawing();
|
||||
|
|
Loading…
Reference in New Issue