From 881438591639c621498fe0c4166f251d19b17ab9 Mon Sep 17 00:00:00 2001 From: "andres.delikat" Date: Sat, 14 May 2011 00:33:25 +0000 Subject: [PATCH] Fix GetExePath function to remove "file:\\" from the directory string. That was causing directory code to freak out. Play movie dialog now successfully creates the movie directory and searches for movie files --- BizHawk.MultiClient/config/PathManager.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/BizHawk.MultiClient/config/PathManager.cs b/BizHawk.MultiClient/config/PathManager.cs index 5c84612352..62bce82cdc 100644 --- a/BizHawk.MultiClient/config/PathManager.cs +++ b/BizHawk.MultiClient/config/PathManager.cs @@ -11,7 +11,11 @@ namespace BizHawk.MultiClient { public static string GetExePathAbsolute() { - return Path.GetDirectoryName(Assembly.GetExecutingAssembly().GetName().CodeBase); + string p = Path.GetDirectoryName(Assembly.GetExecutingAssembly().GetName().CodeBase); + if (p.Substring(0, 6) == "file:\\") + p = p.Remove(0, 6); + string z = p; + return p; } public static string GetBasePathAbsolute()