Browse Source

Rename AssemblyPatcherLoader into AssemblyLoader

ghorsington 5 years ago
parent
commit
0bb2ef9665

+ 1 - 1
BepInEx/BepInEx.csproj

@@ -59,7 +59,7 @@
     <Compile Include="Bootstrap\Entrypoint.cs" />
     <Compile Include="Bootstrap\UnityPatches.cs" />
     <Compile Include="Contract\Attributes.cs" />
-    <Compile Include="Bootstrap\AssemblyPatcherLoader.cs" />
+    <Compile Include="Bootstrap\AssemblyLoader.cs" />
     <Compile Include="Bootstrap\Preloader.cs" />
     <Compile Include="Config.cs" />
     <Compile Include="ConfigWrapper.cs" />

+ 1 - 1
BepInEx/Bootstrap/AssemblyPatcherLoader.cs

@@ -27,7 +27,7 @@ namespace BepInEx.Bootstrap
     /// <summary>
     /// Worker class which is used for loading and patching entire folders of assemblies, or alternatively patching and loading assemblies one at a time.
     /// </summary>
-    public static class AssemblyPatcherLoader
+    public static class AssemblyLoader
     {
         private static List<AssemblyPatcher> patchers = new List<AssemblyPatcher>();
 

+ 4 - 4
BepInEx/Bootstrap/Preloader.cs

@@ -58,12 +58,12 @@ namespace BepInEx.Bootstrap
 
 				string entrypointAssembly = Config.GetEntry("entrypoint-assembly", "UnityEngine.dll", "Preloader");
 
-                AssemblyPatcherLoader.AddPatcher(new AssemblyPatcher { TargetDLLs = new []{ entrypointAssembly }, Patcher = PatchEntrypoint});
-                AssemblyPatcherLoader.AddPatchersFromDirectory(Paths.PatcherPluginPath, GetPatcherMethods);
+                AssemblyLoader.AddPatcher(new AssemblyPatcher { TargetDLLs = new []{ entrypointAssembly }, Patcher = PatchEntrypoint});
+                AssemblyLoader.AddPatchersFromDirectory(Paths.PatcherPluginPath, GetPatcherMethods);
 
-		        AssemblyPatcherLoader.PatchAndLoad(Paths.ManagedPath);
+		        AssemblyLoader.PatchAndLoad(Paths.ManagedPath);
 
-		        AssemblyPatcherLoader.DisposePatchers();
+		        AssemblyLoader.DisposePatchers();
 			}
 			catch (Exception ex)
 			{