Просмотр исходного кода

Readd logging message to tell number of patches loaded in preloader

ghorsington 5 лет назад
Родитель
Сommit
71452568c1
1 измененных файлов с 5 добавлено и 2 удалено
  1. 5 2
      BepInEx.Preloader/Patching/AssemblyPatcher.cs

+ 5 - 2
BepInEx.Preloader/Patching/AssemblyPatcher.cs

@@ -109,9 +109,12 @@ namespace BepInEx.Preloader.Patching
 							Logger.LogDebug(e.ToString());
 					}
 				}
-			}
 
-			foreach (KeyValuePair<string, PatcherPlugin> patcher in sortedPatchers)
+				Logger.Log(patcherCollection.Any() ? LogLevel.Info : LogLevel.Debug,
+					$"Loaded {patcherCollection.Count} patcher methods from {assembly.Name.Name}");
+            }
+
+            foreach (KeyValuePair<string, PatcherPlugin> patcher in sortedPatchers)
 				AddPatcher(patcher.Value);
 
 			foreach (var assemblyDefinition in patchers.Keys)