fix path management bug when running over network share

This commit is contained in:
zeromus 2012-03-02 03:34:28 +00:00
parent 39246b2ca5
commit 49eb8272f9
1 changed files with 2 additions and 5 deletions

View File

@ -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);
}
/// <summary>