Explorar el Código

Add some more debug logging

Bepis hace 4 años
padre
commit
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}");