Load all core assemblies in the entrypoint

This commit is contained in:
Bepis committed 2019-03-04 23:29:41 +11:00
1 parent c3395a565a
commit 8cf63db5a2
1 file changed
+4
+4
View File
@@ -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();
}