diff --git a/BepInEx.Preloader/Entrypoint.cs b/BepInEx.Preloader/Entrypoint.cs index bd9da73..02303f5 100644 --- a/BepInEx.Preloader/Entrypoint.cs +++ b/BepInEx.Preloader/Entrypoint.cs @@ -1,4 +1,5 @@ using System; +using System.IO; using System.Linq; using System.Reflection; @@ -18,6 +19,9 @@ namespace BepInEx.Preloader Paths.SetExecutablePath(args[0]); AppDomain.CurrentDomain.AssemblyResolve += LocalResolve; + foreach (var dll in Directory.GetFiles(Paths.BepInExAssemblyDirectory)) + Assembly.Load(dll); + Preloader.Run(); }