mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Fix known folders for use in the server
This commit is contained in:
parent
2d8670cf98
commit
bf970dc4a1
@ -11,9 +11,13 @@ public static class KnownFolders
|
||||
{
|
||||
get
|
||||
{
|
||||
//var v = Process.GetCurrentProcess().ProcessName;
|
||||
//return Assembly.GetExecutingAssembly().Location.ToAbsolutePath().Parent;
|
||||
return Process.GetCurrentProcess().MainModule!.FileName!.ToAbsolutePath().Parent;
|
||||
var result = Process.GetCurrentProcess().MainModule!.FileName!.ToAbsolutePath().Parent;
|
||||
if (result.FileName == "dotnet".ToRelativePath())
|
||||
{
|
||||
return Assembly.GetExecutingAssembly().Location.ToAbsolutePath().Parent;
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user