Fix a bunch of exceptions in Path Config dialog

This commit is contained in:
adelikat 2013-11-16 22:42:07 +00:00
parent def23fbd0f
commit 5fb8ceb377
2 changed files with 9 additions and 4 deletions

View File

@ -17,7 +17,14 @@ namespace BizHawk.Client.Common
public bool HasSystem(string systemID)
{
return System.Split('_').Contains(systemID);
if (systemID == System)
{
return true;
}
else
{
return System.Split('_').Contains(systemID);
}
}
}

View File

@ -77,8 +77,6 @@ namespace BizHawk.Client.EmuHawk
BasePathBox.Text = Global.Config.PathEntries.GlobalBase;
StartTabPages();
//DoTabs(Global.Config.PathEntries.Paths);
SetDefaultFocusedTab();
DoRomToggle();
}
@ -325,7 +323,7 @@ namespace BizHawk.Client.EmuHawk
private void BrowseFolder(TextBox box, string name, string system)
{
//Ugly hack, we don't want to pass in the system in for system base and global paths
if (name == "Base" || system == "Global")
if (name == "Base" || system == "Global" || system == "Global_NULL")
{
system = null;
}