Added #1701 Setting charset for SWF files with version 5 or lower

This commit is contained in:
Jindra Petřík
2022-11-10 23:16:53 +01:00
parent c43e68dc29
commit 1c9f81fceb
214 changed files with 1149 additions and 584 deletions

View File

@@ -166,7 +166,7 @@ public class AdobeFlashExecutor {
codeSize += actionsToExecute.getBytesLength();
}
actions2.add(new ActionDefineFunction("testRun" + i, new ArrayList<>(), codeSize, swf.version));
actions2.add(new ActionDefineFunction("testRun" + i, new ArrayList<>(), codeSize, swf.version, swf.getCharset()));
actions2.addAll(task.actions);
actions2.add(new ActionReturn());
@@ -176,7 +176,7 @@ public class AdobeFlashExecutor {
i++;
}
item = actions.insertItemAfter(item, new ActionPush(new Object[]{tasks.size(), 1, "runTests"}));
item = actions.insertItemAfter(item, new ActionPush(new Object[]{tasks.size(), 1, "runTests"}, swf.getCharset()));
actions.insertItemAfter(item, new ActionCallFunction());
asm.setActions(actions.toActionList());
asm.setModified();