shown only the constant pool(s) in pcode editor

This commit is contained in:
honfika@gmail.com
2015-05-07 15:25:28 +02:00
parent e7c8a8bf06
commit 732087f20f
11 changed files with 147 additions and 30 deletions

View File

@@ -1566,7 +1566,7 @@ public class CommandLineArgumentParser {
private static void replaceAS2PCode(String text, ASMSource src) throws IOException, InterruptedException {
System.out.println("Replace AS1/2 PCode");
if (text.trim().startsWith("#hexdata")) {
if (text.trim().startsWith(Helper.hexData)) {
src.setActionBytes(Helper.getBytesFromHexaText(text));
} else {
try {
@@ -1597,7 +1597,7 @@ public class CommandLineArgumentParser {
private static void replaceAS3PCode(String text, ABC abc, int bodyIndex, Trait trait) throws IOException, InterruptedException {
System.out.println("Replace AS3 PCode");
if (text.trim().startsWith("#hexdata")) {
if (text.trim().startsWith(Helper.hexData)) {
byte[] data = Helper.getBytesFromHexaText(text);
MethodBody mb = abc.bodies.get(bodyIndex);
mb.setCodeBytes(data);