Fixed #1490, #1493 AS1/2 direct editation of cast op, cast op decompilation

This commit is contained in:
Jindra Petřík
2021-02-13 21:36:08 +01:00
parent 0e0b05947e
commit a954d2f902
14 changed files with 301 additions and 31 deletions

View File

@@ -3561,7 +3561,7 @@ public class CommandLineArgumentParser {
private static void replaceAS2(String as, ASMSource src) throws IOException, InterruptedException {
System.out.println("Replace AS1/2");
System.out.println("Warning: This feature is EXPERIMENTAL");
ActionScript2Parser par = new ActionScript2Parser(src.getSwf().version);
ActionScript2Parser par = new ActionScript2Parser(src.getSwf());
try {
src.setActions(par.actionsFromString(as));
} catch (ActionParseException ex) {