mirror of
https://github.com/Maschell/JNUSTool.git
synced 2025-01-05 21:08:18 +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() {
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user