From ab761066e9557f31ba0d0b6a95fb5746dc35ef21 Mon Sep 17 00:00:00 2001 From: adelikat Date: Fri, 12 Oct 2012 14:33:54 +0000 Subject: [PATCH] Lua - rehook up emu.registerbefore() and emu.registerafter(), but they have memory leaks, don't use them yet --- BizHawk.MultiClient/LuaImplementation.cs | 4 ++-- BizHawk.MultiClient/tools/LuaConsole.cs | 18 +++++++++--------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/BizHawk.MultiClient/LuaImplementation.cs b/BizHawk.MultiClient/LuaImplementation.cs index f2fb8263e2..b535adb150 100644 --- a/BizHawk.MultiClient/LuaImplementation.cs +++ b/BizHawk.MultiClient/LuaImplementation.cs @@ -376,8 +376,8 @@ namespace BizHawk.MultiClient "limitframerate", "displayvsync", "enablerewind", - //"registerbefore", - //"registerafter", + "registerbefore", + "registerafter", "on_snoop", }; diff --git a/BizHawk.MultiClient/tools/LuaConsole.cs b/BizHawk.MultiClient/tools/LuaConsole.cs index f07b91856a..46b6a51d7c 100644 --- a/BizHawk.MultiClient/tools/LuaConsole.cs +++ b/BizHawk.MultiClient/tools/LuaConsole.cs @@ -878,23 +878,23 @@ namespace BizHawk.MultiClient } } } - LuaImp.gui_drawFinishEmu(); + //LuaImp.gui_drawFinishEmu(); } public void StartLuaDrawing() { - //if (luaList != null && luaList.Count > 0) - //{ - // LuaImp.gui_drawNewEmu(); - //} + if (luaList != null && luaList.Count > 0) + { + LuaImp.gui_drawNewEmu(); + } } public void EndLuaDrawing() { - //if (luaList != null && luaList.Count > 0) - //{ - // LuaImp.gui_drawFinishEmu(); - //} + if (luaList != null && luaList.Count > 0) + { + LuaImp.gui_drawFinishEmu(); + } } public bool IsRunning()