code formatting
This commit is contained in:
parent
5a30067daf
commit
169f36ee85
|
@ -78,11 +78,11 @@ namespace BizHawk.Client.EmuHawk
|
|||
// Outputs the given object to the output box on the Lua Console dialog. Note: Can accept a LuaTable
|
||||
private static void LogWithSeparator(string separator, string terminator, params object[] outputs)
|
||||
{
|
||||
if(outputs == null)
|
||||
{
|
||||
GlobalWin.Tools.LuaConsole.WriteToOutputWindow("NULL");
|
||||
return;
|
||||
}
|
||||
if (outputs == null)
|
||||
{
|
||||
GlobalWin.Tools.LuaConsole.WriteToOutputWindow("NULL");
|
||||
return;
|
||||
}
|
||||
for (var outIndex = 0; outIndex < outputs.Length; outIndex++)
|
||||
{
|
||||
var output = outputs[outIndex];
|
||||
|
|
|
@ -143,16 +143,16 @@ namespace BizHawk.Client.EmuHawk
|
|||
public Lua SpawnCoroutine(string file)
|
||||
{
|
||||
var lua = _lua.NewThread();
|
||||
var main = lua.LoadString(File.ReadAllText(file), "main");
|
||||
var main = lua.LoadString(File.ReadAllText(file), "main");
|
||||
lua.Push(main); // push main function on to stack for subsequent resuming
|
||||
return lua;
|
||||
}
|
||||
|
||||
public void ExecuteString(string command)
|
||||
{
|
||||
_currThread = _lua.NewThread();
|
||||
_currThread.DoString(command);
|
||||
}
|
||||
public void ExecuteString(string command)
|
||||
{
|
||||
_currThread = _lua.NewThread();
|
||||
_currThread.DoString(command);
|
||||
}
|
||||
|
||||
public ResumeResult ResumeScript(Lua script)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue