BepInEx.IL2CPP: Move runtime info logging to preloader

This commit is contained in:
ghorsington committed 2022-05-15 00:11:43 +03:00
1 parent 1f6201af9f
commit b76dbfa993
2 files changed
+3 -2

No files matched your search

-2
View File
@@ -58,8 +58,6 @@ public class IL2CPPChainloader : BaseChainloader<BasePlugin>
base.Initialize(gameExePath);
Instance = this;
Logger.Log(LogLevel.Info, $"Runtime version: {Environment.Version}");
Logger.Log(LogLevel.Info, $"Runtime information: {RuntimeInformation.FrameworkDescription}");
ClassInjector.Detour = new UnhollowerDetourHandler();
+3
View File
@@ -1,6 +1,7 @@
using System;
using System.Diagnostics;
using System.Globalization;
using System.Runtime.InteropServices;
using BepInEx.Configuration;
using BepInEx.Logging;
using BepInEx.Preloader.Core;
@@ -49,6 +50,8 @@ public static class Preloader
}
ChainloaderLogHelper.PrintLogInfo(Log);
Logger.Log(LogLevel.Info, $"Runtime version: {Environment.Version}");
Logger.Log(LogLevel.Info, $"Runtime information: {RuntimeInformation.FrameworkDescription}");
Log.Log(LogLevel.Debug, $"Game executable path: {Paths.ExecutablePath}");
Log.Log(LogLevel.Debug, $"Unhollowed assembly directory: {Il2CppInteropManager.IL2CPPInteropAssemblyPath}");