GatheringPathRenderer: Adjust dev lookup path
authorLiza Carvelli <liza@carvel.li>
Sat, 25 Jan 2025 17:59:38 +0000 (18:59 +0100)
committerLiza Carvelli <liza@carvel.li>
Sat, 25 Jan 2025 17:59:38 +0000 (18:59 +0100)
GatheringPathRenderer/RendererPlugin.cs

index 93c666a8c285737f5c8cb7998850a4108eb43bf6..aa88906c94136fd423b5603a9d091fe122c11051 100644 (file)
@@ -82,7 +82,7 @@ public sealed class RendererPlugin : IDalamudPlugin
         get
         {
 #if DEBUG
-            DirectoryInfo? solutionDirectory = _pluginInterface.AssemblyLocation.Directory?.Parent?.Parent?.Parent;
+            DirectoryInfo? solutionDirectory = _pluginInterface.AssemblyLocation.Directory?.Parent?.Parent;
             if (solutionDirectory != null)
             {
                 DirectoryInfo pathProjectDirectory =
@@ -91,7 +91,7 @@ public sealed class RendererPlugin : IDalamudPlugin
                     return pathProjectDirectory;
             }
 
-            throw new Exception("Unable to resolve project path");
+            throw new Exception($"Unable to resolve project path ({_pluginInterface.AssemblyLocation.Directory})");
 #else
             var allPluginsDirectory = _pluginInterface.ConfigFile.Directory ?? throw new Exception("Unknown directory for plugin configs");
             return allPluginsDirectory