remove IsNull() usage for tools that require IMemoryDomains, better to fail catastrophically as they shouldn't be able to get this far.

This commit is contained in:
adelikat 2014-11-30 18:24:28 +00:00
parent 39f145d58b
commit c0b1f6a285
1 changed files with 0 additions and 14 deletions

View File

@ -43,11 +43,6 @@ namespace BizHawk.Client.EmuHawk
sfd.FileName = Path.GetFileNameWithoutExtension(currentFile);
sfd.InitialDirectory = Path.GetDirectoryName(currentFile);
}
else if (!Global.Emulator.IsNull())
{
sfd.FileName = PathManager.FilesystemSafeName(Global.Game);
sfd.InitialDirectory = PathManager.MakeAbsolutePath(Global.Config.PathEntries.MoviesPathFragment, null);
}
else
{
sfd.FileName = "NULL";
@ -94,11 +89,6 @@ namespace BizHawk.Client.EmuHawk
sfd.FileName = Path.GetFileNameWithoutExtension(currentFile);
sfd.InitialDirectory = Path.GetDirectoryName(currentFile);
}
else if (!Global.Emulator.IsNull())
{
sfd.FileName = PathManager.FilesystemSafeName(Global.Game);
sfd.InitialDirectory = PathManager.MakeAbsolutePath(Global.Config.PathEntries.WatchPathFragment, null);
}
else
{
sfd.FileName = "NULL";
@ -144,10 +134,6 @@ namespace BizHawk.Client.EmuHawk
{
sfd.FileName = Path.GetFileNameWithoutExtension(currentFile);
}
else if (!Global.Emulator.IsNull())
{
sfd.FileName = PathManager.FilesystemSafeName(Global.Game);
}
sfd.InitialDirectory = PathManager.GetCheatsPath(Global.Game);
sfd.Filter = "Cheat Files (*.cht)|*.cht|All Files|*.*";