A fix to PathManager, get the executable path, not the dll path
This commit is contained in:
parent
c24133fbee
commit
7a1f28b5a9
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue