a fix to GetExeDirectoryAbsolute() that was breaking path generation

This commit is contained in:
adelikat 2013-11-01 22:37:05 +00:00
parent f3bb7421ed
commit 0eaf6bd33c
1 changed files with 6 additions and 1 deletions

View File

@ -8,7 +8,12 @@ namespace BizHawk.Client.Common
{
public static string GetExeDirectoryAbsolute()
{
return AppDomain.CurrentDomain.BaseDirectory;
string path = AppDomain.CurrentDomain.BaseDirectory;
if (path.EndsWith(Path.DirectorySeparatorChar.ToString()))
{
path = path.Remove(path.Length - 1, 1);
}
return path;
}
/// <summary>