mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-05-28 15:45:38 +00:00
shown only the constant pool(s) in pcode editor
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user