mirror of
https://github.com/BepInEx/BepInEx.git
synced 2026-10-20 01:46:13 +00:00
Log plurals
This commit is contained in:
1 parent
8405ffe415
commit
0f4ac05a31
3 files changed
+3
-3
No files matched your search
@@ -150,7 +150,7 @@ namespace BepInEx.Preloader.Patching
|
||||
|
||||
var assName = ass.GetName();
|
||||
Logger.Log(patcherCollection.Any() ? LogLevel.Info : LogLevel.Debug,
|
||||
$"Loaded {patcherCollection.Count} patcher method{(patcherCollection.Count > 1 ? "s" : "")} from {assName.Name}, Version={assName.Version}");
|
||||
$"Loaded {patcherCollection.Count} patcher method{(patcherCollection.Count == 1 ? "" : "s")} from [{assName.Name} {assName.Version}]");
|
||||
}
|
||||
|
||||
foreach (KeyValuePair<string, PatcherPlugin> patcher in sortedPatchers)
|
||||
|
||||
@@ -83,7 +83,7 @@ namespace BepInEx.Preloader
|
||||
|
||||
AssemblyPatcher.AddPatchersFromDirectory(Paths.PatcherPluginPath);
|
||||
|
||||
Logger.LogInfo($"{AssemblyPatcher.PatcherPlugins.Count} patcher plugin(s) loaded");
|
||||
Logger.LogInfo($"{AssemblyPatcher.PatcherPlugins.Count} patcher plugin{(AssemblyPatcher.PatcherPlugins.Count == 1 ? "" : "s")} loaded");
|
||||
|
||||
AssemblyPatcher.PatchAndLoad(Paths.ManagedPath);
|
||||
AssemblyPatcher.DisposePatchers();
|
||||
|
||||
@@ -274,7 +274,7 @@ namespace BepInEx.Bootstrap
|
||||
var pluginInfos = pluginsToLoad.SelectMany(p => p.Value).ToList();
|
||||
var loadedAssemblies = new Dictionary<string, Assembly>();
|
||||
|
||||
Logger.LogInfo($"{pluginInfos.Count} plugins to load");
|
||||
Logger.LogInfo($"{pluginInfos.Count} plugin{(PluginInfos.Count == 1 ? "" : "s")} to load");
|
||||
|
||||
// We use a sorted dictionary to ensure consistent load order
|
||||
var dependencyDict = new SortedDictionary<string, IEnumerable<string>>(StringComparer.InvariantCultureIgnoreCase);
|
||||
|
||||
Reference in new issue
Block a user