Correct the Dual Gameboy XML creator to use the Global ROM path instead of Gameboy's pallet folder.

This commit is contained in:
hegyak 2014-08-13 19:09:15 +00:00
parent f8becef719
commit e02a0ebf9d
1 changed files with 4 additions and 1 deletions

View File

@ -76,7 +76,10 @@ namespace BizHawk.Client.EmuHawk
{
using (var ofd = new OpenFileDialog())
{
ofd.InitialDirectory = PathManager.MakeAbsolutePath(Global.Config.PathEntries["GB", "Palettes"].Path, "GB");
//Lets use the Dual Gameboy ROM path then the Global ROM path for this. Disabled due to errors in handling an invalid path.
//ofd.InitialDirectory = PathManager.MakeAbsolutePath(Global.Config.PathEntries["DGB", "ROM"].Path, "DGB") ?? PathManager.MakeAbsolutePath(Global.Config.PathEntries["Global_NULL", "ROM"].Path, "Global_NULL");
//Global ROM Path Only
ofd.InitialDirectory = PathManager.MakeAbsolutePath(Global.Config.PathEntries["Global_NULL", "ROM"].Path, "Global_NULL");
ofd.Filter = "GB Roms (*.gb,*.gbc)|*.gb;*.gbc|All Files|*.*";
ofd.RestoreDirectory = true;
var result = ofd.ShowDialog(this);