From 49eb8272f925e6730ba03da4e9811a6c7a683c7f Mon Sep 17 00:00:00 2001 From: zeromus Date: Fri, 2 Mar 2012 03:34:28 +0000 Subject: [PATCH] fix path management bug when running over network share --- BizHawk.MultiClient/config/PathManager.cs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/BizHawk.MultiClient/config/PathManager.cs b/BizHawk.MultiClient/config/PathManager.cs index fc9d13b53b..506d207e85 100644 --- a/BizHawk.MultiClient/config/PathManager.cs +++ b/BizHawk.MultiClient/config/PathManager.cs @@ -11,11 +11,8 @@ namespace BizHawk.MultiClient { public static string GetExeDirectoryAbsolute() { - string p = Path.GetDirectoryName(Assembly.GetEntryAssembly().GetName().CodeBase); - if (p.Substring(0, 6) == "file:\\") - p = p.Remove(0, 6); - string z = p; - return p; + string module = new Uri(Assembly.GetEntryAssembly().GetName().CodeBase).LocalPath; + return Path.GetDirectoryName(module); } ///