code formatting

This commit is contained in:
zeromus 2015-10-15 18:26:07 -05:00
parent 5a30067daf
commit 169f36ee85
2 changed files with 11 additions and 11 deletions

View File

@ -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];

View File

@ -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)
{