From 98b7ac100e72199978530ef5e0875c215c0ba3f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Sat, 7 Oct 2023 23:07:01 +0200 Subject: [PATCH] =?UTF-8?q?Fixed=20#116=20=C2=A7=C2=A7push=20at=20the=20en?= =?UTF-8?q?d=20of=20switch=20branches?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 1 + libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/Graph.java | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ea552d5f7..219a16928 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,6 +25,7 @@ All notable changes to this project will be documented in this file. - [#116] Cyclic buttons - AS1/2 new keyword on empty method name - AS2 getters and setters decoding +- [#116] §§push at the end of switch branches ## [19.0.0] - 2023-10-01 ### Added diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/Graph.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/Graph.java index dff7f99dc..30ca8723c 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/Graph.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/Graph.java @@ -3366,7 +3366,7 @@ public class Graph { protected SwitchItem handleSwitch(GraphTargetItem switchedObject, GraphSourceItem switchStartItem, List foundGotos, Map> partCodes, Map partCodePos, Set visited, Set allParts, TranslateStack stack, List stopPart, List stopPartKind, List loops, List throwStates, BaseLocalData localData, int staticOperation, String path, - List caseValuesMap, GraphPart defaultPart, List caseBodyParts, Reference nextRef, Reference tiRef) throws InterruptedException { + List caseValuesMap, GraphPart defaultPart, List caseBodyParts, Reference nextRef, Reference tiRef) throws InterruptedException { boolean hasDefault = false; /* case 4: @@ -3528,6 +3528,7 @@ public class Graph { } } caseCommands.add(currentCaseCommands); + makeAllCommands(currentCaseCommands, stack); } /*