A fix to PathManager, get the executable path, not the dll path

This commit is contained in:
adelikat 2013-11-20 20:10:10 +00:00
parent c24133fbee
commit 7a1f28b5a9
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ namespace BizHawk.Client.Common
{
public static string GetExeDirectoryAbsolute()
{
string path = Path.GetDirectoryName(Assembly.GetCallingAssembly().Location);
string path = Path.GetDirectoryName(Assembly.GetEntryAssembly().Location);
if (path.EndsWith(Path.DirectorySeparatorChar.ToString()))
{
path = path.Remove(path.Length - 1, 1);