mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-24 16:15:52 +00:00
bundle icons (ZIP.SWC.Binary)
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -38,5 +38,8 @@ public enum TreeNodeType {
|
||||
SOUND,
|
||||
BINARY_DATA,
|
||||
FOLDER,
|
||||
FOLDER_OPEN
|
||||
FOLDER_OPEN,
|
||||
BUNDLE_ZIP,
|
||||
BUNDLE_SWC,
|
||||
BUNDLE_BINARY
|
||||
}
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 579 B |
Binary file not shown.
|
After Width: | Height: | Size: 593 B |
Binary file not shown.
|
After Width: | Height: | Size: 724 B |
Reference in New Issue
Block a user