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
|
get
|
||||||
{
|
{
|
||||||
//var v = Process.GetCurrentProcess().ProcessName;
|
var result = Process.GetCurrentProcess().MainModule!.FileName!.ToAbsolutePath().Parent;
|
||||||
//return Assembly.GetExecutingAssembly().Location.ToAbsolutePath().Parent;
|
if (result.FileName == "dotnet".ToRelativePath())
|
||||||
return Process.GetCurrentProcess().MainModule!.FileName!.ToAbsolutePath().Parent;
|
{
|
||||||
|
return Assembly.GetExecutingAssembly().Location.ToAbsolutePath().Parent;
|
||||||
|
}
|
||||||
|
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user