Переглянути джерело

Add some more debug logging

Bepis 4 роки тому
батько
коміт
896be9be5a

+ 2 - 0
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<T>();

+ 4 - 0
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}");