GatheringPathRenderer: Adjust dev lookup path
This commit is contained in:
parent
a7706a11e7
commit
b2c0934f07
@ -82,7 +82,7 @@ public sealed class RendererPlugin : IDalamudPlugin
|
|||||||
get
|
get
|
||||||
{
|
{
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
DirectoryInfo? solutionDirectory = _pluginInterface.AssemblyLocation.Directory?.Parent?.Parent?.Parent;
|
DirectoryInfo? solutionDirectory = _pluginInterface.AssemblyLocation.Directory?.Parent?.Parent;
|
||||||
if (solutionDirectory != null)
|
if (solutionDirectory != null)
|
||||||
{
|
{
|
||||||
DirectoryInfo pathProjectDirectory =
|
DirectoryInfo pathProjectDirectory =
|
||||||
@ -91,7 +91,7 @@ public sealed class RendererPlugin : IDalamudPlugin
|
|||||||
return pathProjectDirectory;
|
return pathProjectDirectory;
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new Exception("Unable to resolve project path");
|
throw new Exception($"Unable to resolve project path ({_pluginInterface.AssemblyLocation.Directory})");
|
||||||
#else
|
#else
|
||||||
var allPluginsDirectory = _pluginInterface.ConfigFile.Directory ?? throw new Exception("Unknown directory for plugin configs");
|
var allPluginsDirectory = _pluginInterface.ConfigFile.Directory ?? throw new Exception("Unknown directory for plugin configs");
|
||||||
return allPluginsDirectory
|
return allPluginsDirectory
|
||||||
|
Loading…
Reference in New Issue
Block a user