diff --git a/jar/JNUSTool.jar b/jar/JNUSTool.jar new file mode 100644 index 0000000..75c9e4c Binary files /dev/null and b/jar/JNUSTool.jar differ diff --git a/src/FST.java b/src/FST.java index b1e99bb..2601709 100644 --- a/src/FST.java +++ b/src/FST.java @@ -23,21 +23,23 @@ public class FST { private void buildDirectory() { for(FEntry f : getFileEntries()){ - Directory current = directory; - int i = 0; - for(String s :f.getPathList()){ - - if(current.containsFolder(s)){ - current = current.get(s); - }else{ - Directory newDir = new Directory(s); - current.addFolder(newDir); - current = newDir; - } - i++; - if(i==f.getPathList().size()){ - current.addFile(f); - } + if(!f.isDir() && f.isInNUSTitle()){ + Directory current = directory; + int i = 0; + for(String s :f.getPathList()){ + + if(current.containsFolder(s)){ + current = current.get(s); + }else{ + Directory newDir = new Directory(s); + current.addFolder(newDir); + current = newDir; + } + i++; + if(i==f.getPathList().size()){ + current.addFile(f); + } + } } }