A better fix for something I broke
This commit is contained in:
parent
9df0821fcd
commit
8ab655d963
|
@ -21,6 +21,15 @@ namespace BizHawk.Client.EmuHawk
|
|||
Docs = new LuaDocumentation();
|
||||
}
|
||||
|
||||
public EmuLuaLibrary(LuaConsole passed)
|
||||
:this()
|
||||
{
|
||||
LuaWait = new AutoResetEvent(false);
|
||||
Docs.Clear();
|
||||
_caller = passed.Get();
|
||||
LuaRegister(_lua);
|
||||
}
|
||||
|
||||
public LuaDocumentation Docs { get; private set; }
|
||||
public bool IsRunning { get; set; }
|
||||
public EventWaitHandle LuaWait { get; private set; }
|
||||
|
@ -61,14 +70,6 @@ namespace BizHawk.Client.EmuHawk
|
|||
_eventLibrary.CallFrameAfterEvent();
|
||||
}
|
||||
|
||||
public EmuLuaLibrary(LuaConsole passed)
|
||||
{
|
||||
LuaWait = new AutoResetEvent(false);
|
||||
Docs.Clear();
|
||||
_caller = passed.Get();
|
||||
LuaRegister(_lua);
|
||||
}
|
||||
|
||||
public void Close()
|
||||
{
|
||||
_lua = new Lua();
|
||||
|
|
|
@ -48,7 +48,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
};
|
||||
|
||||
InitializeComponent();
|
||||
LuaImp = new EmuLuaLibrary();
|
||||
LuaImp = new EmuLuaLibrary(this);
|
||||
Closing += (o, e) =>
|
||||
{
|
||||
if (AskSave())
|
||||
|
|
Loading…
Reference in New Issue