From 963ff4a06fda74549dcc9fcd4e1d034cd0e26d35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=F8=EDk?= Date: Sun, 9 Jun 2013 19:55:00 +0200 Subject: [PATCH] #101 AS1/2 loop fix --- trunk/src/com/jpexs/decompiler/flash/action/Action.java | 6 +++--- .../com/jpexs/decompiler/flash/action/swf4/ActionPop.java | 2 +- trunk/src/com/jpexs/decompiler/flash/graph/Graph.java | 3 +++ 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/trunk/src/com/jpexs/decompiler/flash/action/Action.java b/trunk/src/com/jpexs/decompiler/flash/action/Action.java index 93cb04779..bb8dded6d 100644 --- a/trunk/src/com/jpexs/decompiler/flash/action/Action.java +++ b/trunk/src/com/jpexs/decompiler/flash/action/Action.java @@ -1090,9 +1090,9 @@ public class Action implements GraphSourceItem { output2.add(new ClassTreeItem(className, extendsOp, implementsOp, functions, vars, staticFunctions, staticVars)); return output2; } - if (parts.get(pos) instanceof PopTreeItem) { - pos++; - } + /*if (parts.get(pos) instanceof PopTreeItem) { + pos++; + }*/ if (parts.size() <= pos) { ok = false; break; diff --git a/trunk/src/com/jpexs/decompiler/flash/action/swf4/ActionPop.java b/trunk/src/com/jpexs/decompiler/flash/action/swf4/ActionPop.java index a8e2dc2bb..425a5b2af 100644 --- a/trunk/src/com/jpexs/decompiler/flash/action/swf4/ActionPop.java +++ b/trunk/src/com/jpexs/decompiler/flash/action/swf4/ActionPop.java @@ -49,7 +49,7 @@ public class ActionPop extends Action { } else if (val instanceof SetTypeTreeItem) { output.add(val); } else { - output.add(new PopTreeItem(this)); + //output.add(new PopTreeItem(this)); } /*if (!(val instanceof DirectValueTreeItem)) { output.add(new VoidTreeItem(this, val)); diff --git a/trunk/src/com/jpexs/decompiler/flash/graph/Graph.java b/trunk/src/com/jpexs/decompiler/flash/graph/Graph.java index d9bb11057..0785d0216 100644 --- a/trunk/src/com/jpexs/decompiler/flash/graph/Graph.java +++ b/trunk/src/com/jpexs/decompiler/flash/graph/Graph.java @@ -349,6 +349,9 @@ public class Graph { } private void processIfs(List list) { + if (true) { + return; + } for (int i = 0; i < list.size(); i++) { GraphTargetItem item = list.get(i); if (item instanceof Block) {