Remove debug messages

This commit is contained in:
Lachlan Leone
2026-03-08 21:33:28 +11:00
parent 81b980ca88
commit 8ad55b0473
+1 -14
View File
@@ -24,20 +24,7 @@ namespace MMOKitchen.Patches
private static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstruction> instructions) private static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstruction> instructions)
{ {
CodeMatcher matcher = new(instructions); CodeMatcher matcher = new(instructions);
foreach (var instruction in matcher.InstructionEnumeration())
{
if (instruction.operand != null)
{
Debug.Log($"{instruction.opcode} : {instruction.operand}");
}
else
{
Debug.Log($"{instruction.opcode}");
}
}
matcher.MatchForward(false, new CodeMatch(OpCodes.Ldc_I4_4), new CodeMatch(OpCodes.Call), new CodeMatch(OpCodes.Callvirt), new CodeMatch(OpCodes.Stloc_S), new CodeMatch(OpCodes.Ldloca_S), new CodeMatch(OpCodes.Call), new CodeMatch(OpCodes.Brtrue)) matcher.MatchForward(false, new CodeMatch(OpCodes.Ldc_I4_4), new CodeMatch(OpCodes.Call), new CodeMatch(OpCodes.Callvirt), new CodeMatch(OpCodes.Stloc_S), new CodeMatch(OpCodes.Ldloca_S), new CodeMatch(OpCodes.Call), new CodeMatch(OpCodes.Brtrue))
.Set(OpCodes.Ldc_I4, Mod.MaxPlayers); .Set(OpCodes.Ldc_I4, Mod.MaxPlayers);