Skip to content

Commit 07a0303

Browse files
committed
Log found DLLs
1 parent b40459a commit 07a0303

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

BepInEx.Preloader/Patching/PatcherPlugin.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22
using System.Collections.Generic;
33
using System.IO;
44
using BepInEx.Bootstrap;
@@ -46,5 +46,8 @@ public void Load(BinaryReader br)
4646
{
4747
TypeName = br.ReadString();
4848
}
49+
50+
/// <inheritdoc />
51+
public override string ToString() => TypeName;
4952
}
5053
}

BepInEx/Bootstrap/TypeLoader.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22
using System.Collections.Generic;
33
using System.IO;
44
using System.Linq;
@@ -116,6 +116,7 @@ static TypeLoader()
116116
long lastWrite = File.GetLastWriteTimeUtc(dll).Ticks;
117117
if (lastWrite == cacheEntry.Timestamp)
118118
{
119+
Logger.LogDebug($"Found {dll} (cached): {cacheEntry.CacheItems}");
119120
result[dll] = cacheEntry.CacheItems;
120121
continue;
121122
}
@@ -131,6 +132,7 @@ static TypeLoader()
131132
}
132133

133134
var matches = ass.MainModule.Types.Select(typeSelector).Where(t => t != null).ToList();
135+
Logger.LogDebug($"Found {dll}: {matches}");
134136
result[dll] = matches;
135137
ass.Dispose();
136138
}

0 commit comments

Comments
 (0)