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() {
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);
}
}
}
}