add log for debugging if needed

This commit is contained in:
vis2k 2021-03-26 19:34:37 +08:00
parent 98109c0ed3
commit 95a7f830c3

View File

@ -164,6 +164,10 @@ public static void InitializeReaderAndWriters(AssemblyDefinition currentAssembly
// fill function body with reader/writer initializers // fill function body with reader/writer initializers
ILProcessor worker = rwInitializer.Body.GetILProcessor(); ILProcessor worker = rwInitializer.Body.GetILProcessor();
// for debugging: add a log to see if initialized on load
//worker.Emit(OpCodes.Ldstr, $"[InitReadWriters] called!");
//worker.Emit(OpCodes.Call, WeaverTypes.logWarningReference);
Writers.InitializeWriters(worker); Writers.InitializeWriters(worker);
Readers.InitializeReaders(worker); Readers.InitializeReaders(worker);