mirror of
https://github.com/BepInEx/BepInEx.git
synced 2026-10-20 01:46:13 +00:00
Merge pull request #272 from harbingerofme/v5-lts
Extend bootup info logging
This commit is contained in:
1 file changed
+6
-1
@@ -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");
|
||||
|
||||
Reference in new issue
Block a user