mirror of
https://github.com/Maschell/JNUSTool.git
synced 2025-01-07 05:48:18 +01:00
Fixed small typo + removed debug prints
This commit is contained in:
parent
85f87c57bb
commit
146de37d27
BIN
jar/JNUSTool.jar
BIN
jar/JNUSTool.jar
Binary file not shown.
@ -285,6 +285,16 @@ public class FST {
|
|||||||
}
|
}
|
||||||
return i;
|
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() {
|
public Directory getFSTDirectory() {
|
||||||
return FSTDirectory;
|
return FSTDirectory;
|
||||||
|
@ -137,7 +137,6 @@ public class NUSTitle {
|
|||||||
Decryption decryption = new Decryption(ticket.getDecryptedKey(),0);
|
Decryption decryption = new Decryption(ticket.getDecryptedKey(),0);
|
||||||
byte[] encryptedFST = null;
|
byte[] encryptedFST = null;
|
||||||
if(Settings.useCachedFiles){
|
if(Settings.useCachedFiles){
|
||||||
Logger.log(getContentPath());
|
|
||||||
String path = getContentPath() + "/" + String.format("%08x", tmd.contents[0].ID) + ".app";
|
String path = getContentPath() + "/" + String.format("%08x", tmd.contents[0].ID) + ".app";
|
||||||
File f = new File(path);
|
File f = new File(path);
|
||||||
if(f.exists()){
|
if(f.exists()){
|
||||||
|
@ -168,7 +168,7 @@ public class UpdateChooser extends JPanel {
|
|||||||
progressBar.setStringPainted(true);
|
progressBar.setStringPainted(true);
|
||||||
|
|
||||||
JButton btnDownloadMeta = new JButton("Download META");
|
JButton btnDownloadMeta = new JButton("Download META");
|
||||||
JButton btnDownloadEncrypted = new JButton("Download Enctrypted");
|
JButton btnDownloadEncrypted = new JButton("Download Encrypted Files");
|
||||||
JProgressBar progressBar_1 = new JProgressBar();
|
JProgressBar progressBar_1 = new JProgressBar();
|
||||||
panel.add(progressBar_1);
|
panel.add(progressBar_1);
|
||||||
progressBar_1.setValue(0);
|
progressBar_1.setValue(0);
|
||||||
|
@ -79,7 +79,6 @@ public class Downloader {
|
|||||||
String version_suf = "";
|
String version_suf = "";
|
||||||
if(version > 0) version_suf = "." + version;
|
if(version > 0) version_suf = "." + version;
|
||||||
String URL = URL_BASE + "/" + String.format("%016X", titleID) + "/tmd" + version_suf;
|
String URL = URL_BASE + "/" + String.format("%016X", titleID) + "/tmd" + version_suf;
|
||||||
System.out.println(URL);
|
|
||||||
downloadFile(URL, "title.tmd",path,null);
|
downloadFile(URL, "title.tmd",path,null);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -130,7 +129,6 @@ public class Downloader {
|
|||||||
String version_suf = "";
|
String version_suf = "";
|
||||||
if(version > 0) version_suf = "." + version;
|
if(version > 0) version_suf = "." + version;
|
||||||
String URL = URL_BASE + "/" + String.format("%016X", titleID) + "/tmd" +version_suf;
|
String URL = URL_BASE + "/" + String.format("%016X", titleID) + "/tmd" +version_suf;
|
||||||
System.out.println(URL);
|
|
||||||
return downloadFileToByteArray(URL);
|
return downloadFileToByteArray(URL);
|
||||||
}
|
}
|
||||||
private byte[] downloadFileToByteArray(String fileURL) throws IOException {
|
private byte[] downloadFileToByteArray(String fileURL) throws IOException {
|
||||||
|
Loading…
Reference in New Issue
Block a user