as3 instruction parsing test added

This commit is contained in:
honfika@gmail.com
2015-03-21 23:41:01 +01:00
parent f390c1463d
commit e20d4048bb
4 changed files with 54 additions and 3 deletions

View File

@@ -23,6 +23,8 @@ import com.jpexs.decompiler.flash.abc.CachedDecompilation;
import com.jpexs.decompiler.flash.abc.ClassPath;
import com.jpexs.decompiler.flash.abc.RenameType;
import com.jpexs.decompiler.flash.abc.ScriptPack;
import com.jpexs.decompiler.flash.abc.avm2.AVM2Code;
import com.jpexs.decompiler.flash.abc.types.MethodBody;
import com.jpexs.decompiler.flash.abc.types.ScriptInfo;
import com.jpexs.decompiler.flash.action.Action;
import com.jpexs.decompiler.flash.action.ActionGraphSource;
@@ -1868,6 +1870,17 @@ public final class SWF implements SWFContainerItem, Timelined {
getVariables(variables, actionsMap, functions, strings, usageTypes, asm, path);
}
public void fixAS3Code() {
for (ABCContainerTag abcTag : getAbcList()) {
ABC abc = abcTag.getABC();
for (MethodBody body : abc.bodies) {
AVM2Code code = body.getCode();
}
((Tag) abcTag).setModified(true);
}
}
public int deobfuscateAS3Identifiers(RenameType renameType) {
for (Tag tag : tags) {
if (tag instanceof ABCContainerTag) {