From 7e6a69e267f80edc79c3ae1ccf884036ab61f50f Mon Sep 17 00:00:00 2001 From: Anairkoen Schno Date: Sat, 19 Oct 2019 13:21:17 -0500 Subject: [PATCH] Loader now explicityl adds the game _Data/Plugins directory to the DLL search path --- IPA.Loader/Loader/LibLoader.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/IPA.Loader/Loader/LibLoader.cs b/IPA.Loader/Loader/LibLoader.cs index 826a1b85..d6e2601a 100644 --- a/IPA.Loader/Loader/LibLoader.cs +++ b/IPA.Loader/Loader/LibLoader.cs @@ -86,6 +86,9 @@ namespace IPA.Loader }).All(f => true); // force it to iterate all } + var unityData = Directory.EnumerateDirectories(Environment.CurrentDirectory, "*_Data").First(); + AddDir(Path.Combine(unityData, "Plugins")); + foreach (var dir in Environment.GetEnvironmentVariable("path").Split(Path.PathSeparator)) AddDir(dir); }