Browse Source

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

pull/32/head
Anairkoen Schno 5 years ago
parent
commit
ff35bed7ea
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
}
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);
}


Loading…
Cancel
Save