possible savestate memory leak fix in DoBuffer

made Lua run on the CPU thread to fix unreliable script execution issues
several fixes so the Lua savestate functions can actually work
added Lua function savestate.verify to help with catching desyncs
implemented FailVerifyAtFrameBoundary in Lua interface
added a Clear button to the LuaWindow

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5382 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
nitsuja-
2010-04-17 21:02:03 +00:00
parent 3fb80c52af
commit 766818baa8
12 changed files with 379 additions and 60 deletions

View File

@ -60,7 +60,7 @@ class wxLuaWindow : public wxFrame
wxPanel *m_Tab_Log;
wxButton *m_Button_Close, *m_Button_LoadScript, *m_Button_Run,
*m_Button_Stop;
*m_Button_Stop, *m_Button_Clear;
wxTextCtrl *m_TextCtrl_Log;
@ -72,6 +72,7 @@ class wxLuaWindow : public wxFrame
ID_BUTTON_LOAD,
ID_BUTTON_RUN,
ID_BUTTON_STOP,
ID_BUTTON_CLEAR,
ID_TEXTCTRL_LOG
};
@ -88,7 +89,15 @@ class wxLuaWindow : public wxFrame
void OnEvent_ScriptLoad_Press(wxCommandEvent& event);
void OnEvent_ScriptRun_Press(wxCommandEvent& event);
void OnEvent_ScriptStop_Press(wxCommandEvent& event);
void OnEvent_ButtonClear_Press(wxCommandEvent& event);
// -- CoreTiming-style event handlers --
static void LuaOpenCallback(u64 userdata, int cyclesLate);
static void LuaCloseCallback(u64 userdata, int cyclesLate);
static void LuaStartCallback(u64 userdata, int cyclesLate);
static void LuaStopCallback(u64 userdata, int cyclesLate);
static void LuaWindow_InitFirstTime();
};