fixed display and added jar

Now its only displays files of the NUS title
added a compiled jar
This commit is contained in:
Maschell 2016-02-02 00:03:41 +01:00
parent 20813d4430
commit c3fd32e968
2 changed files with 17 additions and 15 deletions

BIN
jar/JNUSTool.jar Normal file

Binary file not shown.

View File

@ -23,21 +23,23 @@ public class FST {
private void buildDirectory() { private void buildDirectory() {
for(FEntry f : getFileEntries()){ for(FEntry f : getFileEntries()){
Directory current = directory; if(!f.isDir() && f.isInNUSTitle()){
int i = 0; Directory current = directory;
for(String s :f.getPathList()){ int i = 0;
for(String s :f.getPathList()){
if(current.containsFolder(s)){
current = current.get(s); if(current.containsFolder(s)){
}else{ current = current.get(s);
Directory newDir = new Directory(s); }else{
current.addFolder(newDir); Directory newDir = new Directory(s);
current = newDir; current.addFolder(newDir);
} current = newDir;
i++; }
if(i==f.getPathList().size()){ i++;
current.addFile(f); if(i==f.getPathList().size()){
} current.addFile(f);
}
}
} }
} }