diff --git a/trunk/src/com/jpexs/decompiler/flash/ZippedSWFBundle.java b/trunk/src/com/jpexs/decompiler/flash/ZippedSWFBundle.java index f51f868f3..b62fa6572 100644 --- a/trunk/src/com/jpexs/decompiler/flash/ZippedSWFBundle.java +++ b/trunk/src/com/jpexs/decompiler/flash/ZippedSWFBundle.java @@ -48,7 +48,7 @@ public class ZippedSWFBundle implements SWFBundle { try { while ((entry = zip.getNextEntry()) != null) { if (entry.getName().toLowerCase().endsWith(".swf") - || entry.getName().toLowerCase().endsWith(".gfx")) { + || entry.getName().toLowerCase().endsWith(".gfx")) { keySet.add(entry.getName()); } //streamMap.put(, is) diff --git a/trunk/src/com/jpexs/decompiler/flash/gui/TagTree.java b/trunk/src/com/jpexs/decompiler/flash/gui/TagTree.java index 6fbbd09d2..5d73f59ef 100644 --- a/trunk/src/com/jpexs/decompiler/flash/gui/TagTree.java +++ b/trunk/src/com/jpexs/decompiler/flash/gui/TagTree.java @@ -212,6 +212,21 @@ public class TagTree extends JTree { if (t instanceof SWF) { return TreeNodeType.FLASH; } + + if(t instanceof SWFList) { + SWFList slist = (SWFList)t; + if(slist.name!=null){ + if(slist.name.toLowerCase().endsWith(".zip")){ + return TreeNodeType.BUNDLE_ZIP; + } + if(slist.name.toLowerCase().endsWith(".swc")){ + return TreeNodeType.BUNDLE_SWC; + } + else{ + return TreeNodeType.BUNDLE_BINARY; + } + } + } return TreeNodeType.FOLDER; } diff --git a/trunk/src/com/jpexs/decompiler/flash/gui/TreeNodeType.java b/trunk/src/com/jpexs/decompiler/flash/gui/TreeNodeType.java index 8bd1ad03e..35d71ff4a 100644 --- a/trunk/src/com/jpexs/decompiler/flash/gui/TreeNodeType.java +++ b/trunk/src/com/jpexs/decompiler/flash/gui/TreeNodeType.java @@ -38,5 +38,8 @@ public enum TreeNodeType { SOUND, BINARY_DATA, FOLDER, - FOLDER_OPEN + FOLDER_OPEN, + BUNDLE_ZIP, + BUNDLE_SWC, + BUNDLE_BINARY } diff --git a/trunk/src/com/jpexs/decompiler/flash/gui/graphics/bundlebinary16.png b/trunk/src/com/jpexs/decompiler/flash/gui/graphics/bundlebinary16.png new file mode 100644 index 000000000..bddba1f98 Binary files /dev/null and b/trunk/src/com/jpexs/decompiler/flash/gui/graphics/bundlebinary16.png differ diff --git a/trunk/src/com/jpexs/decompiler/flash/gui/graphics/bundleswc16.png b/trunk/src/com/jpexs/decompiler/flash/gui/graphics/bundleswc16.png new file mode 100644 index 000000000..b0f4dd792 Binary files /dev/null and b/trunk/src/com/jpexs/decompiler/flash/gui/graphics/bundleswc16.png differ diff --git a/trunk/src/com/jpexs/decompiler/flash/gui/graphics/bundlezip16.png b/trunk/src/com/jpexs/decompiler/flash/gui/graphics/bundlezip16.png new file mode 100644 index 000000000..2b6b1007f Binary files /dev/null and b/trunk/src/com/jpexs/decompiler/flash/gui/graphics/bundlezip16.png differ