Merge pull request #272 from harbingerofme/v5-lts

Extend bootup info logging
This commit is contained in:
Geoffrey Horsington authored and GitHub committed 2021-07-10 16:51:26 +03:00
commit e96d31465d
1 file changed
+6 -1
+6 -1
View File
@@ -50,7 +50,9 @@ namespace BepInEx.Preloader
PreloaderLog = new PreloaderConsoleListener();
Logger.Listeners.Add(PreloaderLog);
string consoleTile = $"BepInEx {typeof(Paths).Assembly.GetName().Version} - {Paths.ProcessName}";
Version version = typeof(Paths).Assembly.GetName().Version;
string consoleTile = $"BepInEx {version} - {Paths.ProcessName} ({File.GetLastWriteTime(Paths.ExecutablePath)})";
if (ConsoleManager.ConsoleActive)
ConsoleManager.SetConsoleTitle(consoleTile);
@@ -83,6 +85,9 @@ namespace BepInEx.Preloader
TypeName = "BepInEx.Chainloader"
});
Logger.Log(LogLevel.Info,
$"Loaded 1 patcher method from [BepInEx.Preloader {version}]");
AssemblyPatcher.AddPatchersFromDirectory(Paths.PatcherPluginPath);
Logger.LogInfo($"{AssemblyPatcher.PatcherPlugins.Count} patcher plugin{(AssemblyPatcher.PatcherPlugins.Count == 1 ? "" : "s")} loaded");