mirror of
https://github.com/Maschell/JNUSTool.git
synced 2025-01-07 13:58:17 +01:00
fixed display and added jar
Now its only displays files of the NUS title added a compiled jar
This commit is contained in:
parent
20813d4430
commit
c3fd32e968
BIN
jar/JNUSTool.jar
Normal file
BIN
jar/JNUSTool.jar
Normal file
Binary file not shown.
32
src/FST.java
32
src/FST.java
@ -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);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user