Some formatting cleanup on EmuLuaLibrary, nothing useful here

This commit is contained in:
adelikat 2014-01-21 00:43:57 +00:00
parent 614d457de4
commit 186503c041
1 changed files with 20 additions and 13 deletions

View File

@ -1,24 +1,30 @@
using System;
using System.Threading;
using LuaInterface;
using BizHawk.Client.Common;
using LuaInterface;
namespace BizHawk.Client.EmuHawk
{
public class EmuLuaLibrary
{
private Lua _lua = new Lua();
private readonly LuaConsole _caller;
private Lua _currThread;
private readonly FormsLuaLibrary _formsLibrary = new FormsLuaLibrary();
private readonly EventLuaLibrary _eventLibrary = new EventLuaLibrary(ConsoleLuaLibrary.console_log);
private readonly GuiLuaLibrary _guiLibrary = new GuiLuaLibrary();
private readonly LuaConsole _caller;
public LuaDocumentation Docs = new LuaDocumentation();
public bool IsRunning;
public EventWaitHandle LuaWait;
public bool FrameAdvanceRequested;
private Lua _lua = new Lua();
private Lua _currThread;
public EmuLuaLibrary()
{
Docs = new LuaDocumentation();
}
public LuaDocumentation Docs { get; private set; }
public bool IsRunning { get; set; }
public EventWaitHandle LuaWait { get; private set; }
public bool FrameAdvanceRequested { get; private set; }
public GuiLuaLibrary GuiLibrary
{
@ -109,8 +115,8 @@ namespace BizHawk.Client.EmuHawk
public class ResumeResult
{
public bool WaitForFrame;
public bool Terminated;
public bool WaitForFrame { get; set; }
public bool Terminated { get; set; }
}
public ResumeResult ResumeScript(Lua script)
@ -130,6 +136,7 @@ namespace BizHawk.Client.EmuHawk
// yielded
result.WaitForFrame = FrameAdvanceRequested;
}
FrameAdvanceRequested = false;
return result;
}