From 0da14c507c6d9da31c765780f078c441641819f0 Mon Sep 17 00:00:00 2001 From: ghorsington Date: Sun, 15 May 2022 00:11:43 +0300 Subject: [PATCH] BepInEx.IL2CPP: Move runtime info logging to preloader --- BepInEx.IL2CPP/IL2CPPChainloader.cs | 2 -- BepInEx.IL2CPP/Preloader.cs | 3 +++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/BepInEx.IL2CPP/IL2CPPChainloader.cs b/BepInEx.IL2CPP/IL2CPPChainloader.cs index cbf80c1..5a1422c 100644 --- a/BepInEx.IL2CPP/IL2CPPChainloader.cs +++ b/BepInEx.IL2CPP/IL2CPPChainloader.cs @@ -58,8 +58,6 @@ public class IL2CPPChainloader : BaseChainloader 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(); diff --git a/BepInEx.IL2CPP/Preloader.cs b/BepInEx.IL2CPP/Preloader.cs index 43a5343..2f32818 100644 --- a/BepInEx.IL2CPP/Preloader.cs +++ b/BepInEx.IL2CPP/Preloader.cs @@ -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}");