diff --git a/src/BizHawk.Client.DiscoHawk/Program.cs b/src/BizHawk.Client.DiscoHawk/Program.cs index 5733aa3ba5..e74805b8e0 100644 --- a/src/BizHawk.Client.DiscoHawk/Program.cs +++ b/src/BizHawk.Client.DiscoHawk/Program.cs @@ -99,9 +99,7 @@ namespace BizHawk.Client.DiscoHawk public static string GetExeDirectoryAbsolute() { - var uri = new Uri(Assembly.GetEntryAssembly().GetName().CodeBase); - string module = uri.LocalPath + System.Web.HttpUtility.UrlDecode(uri.Fragment); - return Path.GetDirectoryName(module); + return Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location); } private static Assembly CurrentDomain_AssemblyResolve(object sender, ResolveEventArgs args)