From 896be9be5aa992143e2c3bf41332ee74c8862bf5 Mon Sep 17 00:00:00 2001 From: Bepis <36346617+bbepis@users.noreply.github.com> Date: Wed, 20 May 2020 13:38:12 +1000 Subject: [PATCH] Add some more debug logging --- BepInEx.Core/Bootstrap/TypeLoader.cs | 2 ++ BepInEx.Preloader.Unity/UnityPreloader.cs | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/BepInEx.Core/Bootstrap/TypeLoader.cs b/BepInEx.Core/Bootstrap/TypeLoader.cs index ce8ade8..62b7481 100644 --- a/BepInEx.Core/Bootstrap/TypeLoader.cs +++ b/BepInEx.Core/Bootstrap/TypeLoader.cs @@ -115,6 +115,8 @@ namespace BepInEx.Bootstrap var ass = AssemblyDefinition.ReadAssembly(dll, readerParameters); + Logger.LogDebug($"Examining '{dll}'"); + if (!assemblyFilter?.Invoke(ass) ?? false) { result[dll] = new List(); diff --git a/BepInEx.Preloader.Unity/UnityPreloader.cs b/BepInEx.Preloader.Unity/UnityPreloader.cs index 67a881e..bb848f4 100644 --- a/BepInEx.Preloader.Unity/UnityPreloader.cs +++ b/BepInEx.Preloader.Unity/UnityPreloader.cs @@ -84,6 +84,10 @@ namespace BepInEx.Preloader.Unity Log.LogInfo($"CLR runtime version: {Environment.Version}"); Log.LogInfo($"Supports SRE: {Utility.CLRSupportsDynamicAssemblies}"); + Log.LogDebug($"Game executable path: {Paths.ExecutablePath}"); + Log.LogDebug($"Unity Managed directory: {ManagedPath}"); + Log.LogDebug($"BepInEx root path: {Paths.BepInExRootPath}"); + if (harmonyBridgeException != null) Log.LogWarning($"Failed to enable fix for Harmony for .NET Standard API. Error message: {harmonyBridgeException.Message}");