Skip to content

Commit 3df967f

Browse files
committed
Log some more in FindPluginTypes
1 parent 4ad7b0b commit 3df967f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

BepInEx/Bootstrap/TypeLoader.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ static TypeLoader()
102102
/// <returns>A dictionary of all assemblies in the directory and the list of type metadatas of types that match the selector.</returns>
103103
public static Dictionary<string, List<T>> FindPluginTypes<T>(string directory, Func<TypeDefinition, T> typeSelector, Func<AssemblyDefinition, bool> assemblyFilter = null, string cacheName = null) where T : ICacheable, new()
104104
{
105+
Logger.LogDebug($"Searching {directory} for DLLs");
106+
105107
var result = new Dictionary<string, List<T>>();
106108
Dictionary<string, CachedAssembly<T>> cache = null;
107109

@@ -126,6 +128,7 @@ static TypeLoader()
126128

127129
if (!assemblyFilter?.Invoke(ass) ?? false)
128130
{
131+
Logger.LogDebug($"Found {dll}: []");
129132
result[dll] = new List<T>();
130133
ass.Dispose();
131134
continue;

0 commit comments

Comments
 (0)