Browse Source

Revert "Load all core assemblies in the entrypoint"

0Harmony.dll is causing issues with references

This reverts commit 8cf63db5a2718e1d321916998674e2f74458eafa.
Bepis 5 years ago
parent
commit
669fc65d4c
1 changed files with 0 additions and 4 deletions
  1. 0 4
      BepInEx.Preloader/Entrypoint.cs

+ 0 - 4
BepInEx.Preloader/Entrypoint.cs

@@ -1,5 +1,4 @@
 using System;
 using System;
-using System.IO;
 using System.Linq;
 using System.Linq;
 using System.Reflection;
 using System.Reflection;
 
 
@@ -19,9 +18,6 @@ namespace BepInEx.Preloader
 			Paths.SetExecutablePath(args[0]);
 			Paths.SetExecutablePath(args[0]);
 			AppDomain.CurrentDomain.AssemblyResolve += LocalResolve;
 			AppDomain.CurrentDomain.AssemblyResolve += LocalResolve;
 
 
-			foreach (var dll in Directory.GetFiles(Paths.BepInExAssemblyDirectory))
-				Assembly.Load(dll);
-
 			Preloader.Run();
 			Preloader.Run();
 		}
 		}