mirror of
https://github.com/BepInEx/BepInEx.git
synced 2026-10-20 01:46:13 +00:00
Load all core assemblies in the entrypoint
This commit is contained in:
1 file changed
+4
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user