fix path management bug when running over network share
This commit is contained in:
parent
39246b2ca5
commit
49eb8272f9
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue