mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-23 03:15:32 +00:00
#35 Unicode strings fix
This commit is contained in:
@@ -291,23 +291,23 @@ public class Graph {
|
||||
populateParts(head, allParts);
|
||||
}
|
||||
List<GraphTargetItem> ret = printGraph(localData, new Stack<GraphTargetItem>(), allParts, null, heads.get(0), null, new ArrayList<Loop>(), new HashMap<Loop, List<GraphTargetItem>>());
|
||||
finalProcessAll(ret,0);
|
||||
finalProcessAll(ret, 0);
|
||||
return ret;
|
||||
}
|
||||
|
||||
private void finalProcessAll(List<GraphTargetItem> list,int level) {
|
||||
finalProcess(list,level);
|
||||
private void finalProcessAll(List<GraphTargetItem> list, int level) {
|
||||
finalProcess(list, level);
|
||||
for (GraphTargetItem item : list) {
|
||||
if (item instanceof Block) {
|
||||
List<List<GraphTargetItem>> subs = ((Block) item).getSubs();
|
||||
for (List<GraphTargetItem> sub : subs) {
|
||||
finalProcessAll(sub,level+1);
|
||||
finalProcessAll(sub, level + 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
protected void finalProcess(List<GraphTargetItem> list,int level) {
|
||||
protected void finalProcess(List<GraphTargetItem> list, int level) {
|
||||
}
|
||||
|
||||
protected List<GraphPart> getLoopsContinues(List<Loop> loops) {
|
||||
@@ -831,7 +831,7 @@ public class Graph {
|
||||
if ((!part.nextParts.isEmpty()) && part.nextParts.get(0).leadsTo(part, loopContinues)) {
|
||||
if ((part.nextParts.size() > 1) && part.nextParts.get(1).leadsTo(part, loopContinues)) {
|
||||
if (output.isEmpty()) {
|
||||
whileTrueLoop = new Loop(loops.size(),part, null);
|
||||
whileTrueLoop = new Loop(loops.size(), part, null);
|
||||
loops.add(whileTrueLoop);
|
||||
whileTrue = true;
|
||||
} else {
|
||||
@@ -853,7 +853,7 @@ public class Graph {
|
||||
}
|
||||
Loop currentLoop = null;
|
||||
if (loop) {
|
||||
currentLoop=new Loop(loops.size(),part, null);
|
||||
currentLoop = new Loop(loops.size(), part, null);
|
||||
loops.add(currentLoop);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user