mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
add log for debugging if needed
This commit is contained in:
parent
98109c0ed3
commit
95a7f830c3
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user