Remove debug messages
This commit is contained in:
@@ -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);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user