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)){ if(current.containsFolder(s)){
current = current.get(s); current = current.get(s);
}else{ }else{
Directory newDir = new Directory(s); Directory newDir = new Directory(s);
current.addFolder(newDir); current.addFolder(newDir);
current = newDir; current = newDir;
} }
i++; i++;
if(i==f.getPathList().size()){ if(i==f.getPathList().size()){
current.addFile(f); current.addFile(f);
} }
}
} }
} }