WatermarkPass不打印注入日志

main
walon 2025-08-02 23:22:26 +08:00
parent 54bcae5178
commit f5c2fe94ea
1 changed files with 2 additions and 2 deletions

View File

@ -157,7 +157,7 @@ namespace Obfuz.ObfusPasses.Watermark
Instruction.Create(OpCodes.Ldtoken, fieldDef), Instruction.Create(OpCodes.Ldtoken, fieldDef),
Instruction.Create(OpCodes.Call, importer.InitializedArray), Instruction.Create(OpCodes.Call, importer.InitializedArray),
}); });
Debug.Log($"Inserted watermark access for field '{fieldDef.Name}' in method '{targetMethod.FullName}' at index {insertIndex}."); //Debug.Log($"Inserted watermark access for field '{fieldDef.Name}' in method '{targetMethod.FullName}' at index {insertIndex}.");
} }
} }
@ -211,7 +211,7 @@ namespace Obfuz.ObfusPasses.Watermark
insts.InsertRange(insertIndex, insertInstructions); insts.InsertRange(insertIndex, insertInstructions);
intIndex += ldcCount; intIndex += ldcCount;
Debug.Log($"Inserted watermark IL sequence for in method '{targetMethod.FullName}' at index {insertIndex}."); //Debug.Log($"Inserted watermark IL sequence for in method '{targetMethod.FullName}' at index {insertIndex}.");
} }
} }