Lua Console - replace a NullEmulator check with a Global.Game != null check as that is more precisely why a check is happening

This commit is contained in:
adelikat 2014-11-30 18:44:20 +00:00
parent 773a53d2e3
commit 21889bba58
1 changed files with 1 additions and 1 deletions

View File

@ -465,7 +465,7 @@ namespace BizHawk.Client.EmuHawk
sfd.FileName = Path.GetFileNameWithoutExtension(_luaList.Filename); sfd.FileName = Path.GetFileNameWithoutExtension(_luaList.Filename);
sfd.InitialDirectory = Path.GetDirectoryName(_luaList.Filename); sfd.InitialDirectory = Path.GetDirectoryName(_luaList.Filename);
} }
else if (!Global.Emulator.IsNull()) else if (Global.Game != null)
{ {
sfd.FileName = PathManager.FilesystemSafeName(Global.Game); sfd.FileName = PathManager.FilesystemSafeName(Global.Game);
sfd.InitialDirectory = PathManager.GetLuaPath(); sfd.InitialDirectory = PathManager.GetLuaPath();