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:
parent
773a53d2e3
commit
21889bba58
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue