Some nitpicky code clean up on lua console, nothing important here

This commit is contained in:
adelikat 2013-11-27 21:03:48 +00:00
parent 788aea970e
commit 9e521a1f14
1 changed files with 2 additions and 4 deletions

View File

@ -334,7 +334,7 @@ namespace BizHawk.Client.EmuHawk
/// <param name="includeFrameWaiters">should frame waiters be waken up? only use this immediately before a frame of emulation</param> /// <param name="includeFrameWaiters">should frame waiters be waken up? only use this immediately before a frame of emulation</param>
public void ResumeScripts(bool includeFrameWaiters) public void ResumeScripts(bool includeFrameWaiters)
{ {
if (_luaList != null && _luaList.Count > 0) if (_luaList.Any())
{ {
if (LuaImp.GuiLibrary.SurfaceIsNull) if (LuaImp.GuiLibrary.SurfaceIsNull)
{ {
@ -342,12 +342,10 @@ namespace BizHawk.Client.EmuHawk
} }
foreach (var lf in _luaList) foreach (var lf in _luaList)
{ {
//save old current directory before this lua thread clobbers it for the .net thread var oldcd = Environment.CurrentDirectory; //save old current directory before this lua thread clobbers it for the .net thread
var oldcd = Environment.CurrentDirectory;
try try
{ {
//LuaImp.gui_clearGraphics();
if (lf.Enabled && lf.Thread != null && !(lf.Paused)) if (lf.Enabled && lf.Thread != null && !(lf.Paused))
{ {
var prohibit = lf.FrameWaiting && !includeFrameWaiters; var prohibit = lf.FrameWaiting && !includeFrameWaiters;