From 07615f58bbaa56e50f4aedc749f0372921e70eb2 Mon Sep 17 00:00:00 2001 From: adelikat Date: Sat, 17 Nov 2012 19:02:28 +0000 Subject: [PATCH] Path Config - fix bug where PCE BIOS path config was not respected when clicking the browse button --- BizHawk.MultiClient/config/PathConfig.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/BizHawk.MultiClient/config/PathConfig.cs b/BizHawk.MultiClient/config/PathConfig.cs index d0ea2a181e..0e448ab429 100644 --- a/BizHawk.MultiClient/config/PathConfig.cs +++ b/BizHawk.MultiClient/config/PathConfig.cs @@ -735,10 +735,10 @@ namespace BizHawk.MultiClient BrowseFolder(INTVCheatsBox, INTVCheatsDescription.Text, "INTV"); } - void BrowseForBios(string filter, string config, TextBox tb) + void BrowseForBios(string filter, string config, string system, TextBox tb) { OpenFileDialog ofd = new OpenFileDialog(); - ofd.InitialDirectory = Path.GetDirectoryName(config); + ofd.InitialDirectory = PathManager.MakeAbsolutePath(Path.GetDirectoryName(config), system); ofd.Filter = filter; ofd.FileName = Path.GetFileName(config); @@ -758,7 +758,7 @@ namespace BizHawk.MultiClient { BrowseForBios( "Intellivision EROM (*.bin; *.int)|*.bin;*.int|All Files|*.*", - Global.Config.PathINTVEROM, + Global.Config.PathINTVEROM, "INTV", INTVEROMBox); } @@ -766,7 +766,7 @@ namespace BizHawk.MultiClient { BrowseForBios( "Intellivision GROM (*.bin; *.int)|*.bin;*.int|All Files|*.*", - Global.Config.PathINTVGROM, + Global.Config.PathINTVGROM, "INTV", INTVGROMBox); } @@ -775,7 +775,7 @@ namespace BizHawk.MultiClient { BrowseForBios( "PCE CD BIOS (*.pce)|*.pce|All Files|*.*", - Global.Config.PathPCEBios, + Global.Config.PathPCEBios, "PCE", PCEBiosBox); }