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

This commit is contained in:
andres.delikat 2011-05-14 00:33:25 +00:00
parent a82bb3718b
commit 8814385916
1 changed files with 5 additions and 1 deletions

View File

@ -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()