Quellcode durchsuchen

Rename AssemblyPatcher into AssemblyPatcherLoader

ghorsington vor 5 Jahren
Ursprung
Commit
0f1a38d752
3 geänderte Dateien mit 5 neuen und 3 gelöschten Zeilen
  1. 1 1
      BepInEx/BepInEx.csproj
  2. 3 1
      BepInEx/Bootstrap/AssemblyPatcher.cs
  3. 1 1
      BepInEx/Bootstrap/Preloader.cs

+ 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\AssemblyPatcher.cs" />
+    <Compile Include="Bootstrap\AssemblyPatcherLoader.cs" />
     <Compile Include="Bootstrap\Preloader.cs" />
     <Compile Include="Config.cs" />
     <Compile Include="ConfigWrapper.cs" />

+ 3 - 1
BepInEx/Bootstrap/AssemblyPatcher.cs

@@ -14,10 +14,12 @@ namespace BepInEx.Bootstrap
     /// <param name="assembly">The assembly that is being patched.</param>
     public delegate void AssemblyPatcherDelegate(ref AssemblyDefinition assembly);
 
+
+
     /// <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 AssemblyPatcher
+    public static class AssemblyPatcherLoader
     {
         /// <summary>
         /// Configuration value of whether assembly dumping is enabled or not.

+ 1 - 1
BepInEx/Bootstrap/Preloader.cs

@@ -105,7 +105,7 @@ namespace BepInEx.Bootstrap
 						AddPatcher(kv.Value.Value, kv.Value.Key);
 				}
 
-				AssemblyPatcher.PatchAll(Paths.ManagedPath, PatcherDictionary, Initializers, Finalizers);
+				AssemblyPatcherLoader.PatchAll(Paths.ManagedPath, PatcherDictionary, Initializers, Finalizers);
 			}
 			catch (Exception ex)
 			{