Fixed small typo + removed debug prints

This commit is contained in:
Maschell 2016-03-02 21:00:42 +01:00
parent 85f87c57bb
commit 146de37d27
5 changed files with 11 additions and 4 deletions

Binary file not shown.

View File

@ -285,6 +285,16 @@ public class FST {
}
return i;
}
public String notInNUS() {
StringBuilder sb = new StringBuilder();
for(FEntry f: getFileEntries()){
if(!f.isDir() && !f.isInNUSTitle()){
sb.append(f.getFullPath() + " " + String.format("%8.2f MB ", f.getFileLength()/1024.0/1024.0) + "\n");
}
}
return sb.toString();
}
public Directory getFSTDirectory() {
return FSTDirectory;

View File

@ -137,7 +137,6 @@ public class NUSTitle {
Decryption decryption = new Decryption(ticket.getDecryptedKey(),0);
byte[] encryptedFST = null;
if(Settings.useCachedFiles){
Logger.log(getContentPath());
String path = getContentPath() + "/" + String.format("%08x", tmd.contents[0].ID) + ".app";
File f = new File(path);
if(f.exists()){

View File

@ -168,7 +168,7 @@ public class UpdateChooser extends JPanel {
progressBar.setStringPainted(true);
JButton btnDownloadMeta = new JButton("Download META");
JButton btnDownloadEncrypted = new JButton("Download Enctrypted");
JButton btnDownloadEncrypted = new JButton("Download Encrypted Files");
JProgressBar progressBar_1 = new JProgressBar();
panel.add(progressBar_1);
progressBar_1.setValue(0);

View File

@ -79,7 +79,6 @@ public class Downloader {
String version_suf = "";
if(version > 0) version_suf = "." + version;
String URL = URL_BASE + "/" + String.format("%016X", titleID) + "/tmd" + version_suf;
System.out.println(URL);
downloadFile(URL, "title.tmd",path,null);
}
@ -130,7 +129,6 @@ public class Downloader {
String version_suf = "";
if(version > 0) version_suf = "." + version;
String URL = URL_BASE + "/" + String.format("%016X", titleID) + "/tmd" +version_suf;
System.out.println(URL);
return downloadFileToByteArray(URL);
}
private byte[] downloadFileToByteArray(String fileURL) throws IOException {