Pārlūkot izejas kodu

Load all core assemblies in the entrypoint

Bepis 5 gadi atpakaļ
vecāks
revīzija
8cf63db5a2
1 mainītis faili ar 4 papildinājumiem un 0 dzēšanām
  1. 4 0
      BepInEx.Preloader/Entrypoint.cs

+ 4 - 0
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();
 		}