Browse Source

Loader now explicityl adds the game _Data/Plugins directory to the DLL search path

pull/46/head
Anairkoen Schno 5 years ago
parent
commit
7e6a69e267
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      IPA.Loader/Loader/LibLoader.cs

+ 3
- 0
IPA.Loader/Loader/LibLoader.cs View File

@ -86,6 +86,9 @@ namespace IPA.Loader
}).All(f => true); // force it to iterate all }).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)) foreach (var dir in Environment.GetEnvironmentVariable("path").Split(Path.PathSeparator))
AddDir(dir); AddDir(dir);
} }


Loading…
Cancel
Save