From 3926f7735e84e8b7fba922a2fcb2d73e6cf7062d Mon Sep 17 00:00:00 2001 From: Graham Date: Sun, 15 Sep 2019 12:00:35 +0100 Subject: [PATCH] Add FCONST and DCONST groups to InsnMatcher --- asm/src/main/java/dev/openrs2/asm/InsnMatcher.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/asm/src/main/java/dev/openrs2/asm/InsnMatcher.java b/asm/src/main/java/dev/openrs2/asm/InsnMatcher.java index 1aa26806..3767761c 100644 --- a/asm/src/main/java/dev/openrs2/asm/InsnMatcher.java +++ b/asm/src/main/java/dev/openrs2/asm/InsnMatcher.java @@ -208,6 +208,15 @@ public final class InsnMatcher { Opcodes.ICONST_4, Opcodes.ICONST_5 }) + .put("FCONST", new int[] { + Opcodes.FCONST_0, + Opcodes.FCONST_1, + Opcodes.FCONST_2 + }) + .put("DCONST", new int[] { + Opcodes.DCONST_0, + Opcodes.DCONST_1 + }) .build(); private static char opcodeToCodepoint(int opcode) {