Path config - set tab stops and hook up ROM path logic
This commit is contained in:
parent
b3502aebad
commit
77906b80c5
File diff suppressed because it is too large
Load Diff
|
@ -178,6 +178,8 @@ namespace BizHawk.MultiClient
|
|||
Global.Config.LuaPath = LuaBox.Text;
|
||||
Global.Config.WatchPath = WatchBox.Text;
|
||||
Global.Config.AVIPath = AVIBox.Text;
|
||||
|
||||
BasePathBox.Focus();
|
||||
}
|
||||
|
||||
private void Cancel_Click(object sender, EventArgs e)
|
||||
|
|
|
@ -120,4 +120,7 @@
|
|||
<metadata name="GGBrowseBase.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="GGBrowseBase.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
</root>
|
|
@ -205,5 +205,47 @@ namespace BizHawk.MultiClient
|
|||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
public static string GetRomsPath(string sysID)
|
||||
{
|
||||
string path = "";
|
||||
|
||||
if (Global.Config.UseRecentForROMs)
|
||||
return Environment.SpecialFolder.Recent.ToString();
|
||||
|
||||
switch (sysID)
|
||||
{
|
||||
case "NES":
|
||||
path = PathManager.MakeAbsolutePath(Global.Config.PathNESROMs, "NES");
|
||||
break;
|
||||
case "SMS":
|
||||
path = PathManager.MakeAbsolutePath(Global.Config.PathSMSROMs, "SMS");
|
||||
break;
|
||||
case "SG":
|
||||
path = PathManager.MakeAbsolutePath(Global.Config.PathSGROMs, "SG");
|
||||
break;
|
||||
case "GG":
|
||||
path = PathManager.MakeAbsolutePath(Global.Config.PathGGROMs, "GG");
|
||||
break;
|
||||
case "GEN":
|
||||
path = PathManager.MakeAbsolutePath(Global.Config.PathGenesisROMs, "GEN");
|
||||
break;
|
||||
case "SFX":
|
||||
case "PCE":
|
||||
path = PathManager.MakeAbsolutePath(Global.Config.PathPCEROMs, "GB");
|
||||
break;
|
||||
case "GB":
|
||||
path = PathManager.MakeAbsolutePath(Global.Config.PathGBROMs, "GB");
|
||||
break;
|
||||
case "TI83":
|
||||
path = PathManager.MakeAbsolutePath(Global.Config.PathTI83ROMs, "TI83");
|
||||
break;
|
||||
default:
|
||||
path = PathManager.GetBasePathAbsolute();
|
||||
break;
|
||||
}
|
||||
|
||||
return path;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue