mirror of
https://github.com/Maschell/JNUSTool.git
synced 2025-01-07 05:48:18 +01:00
.cert will be also created from cached files
This commit is contained in:
parent
e2bd327368
commit
6e54967dd5
BIN
jar/JNUSTool.jar
BIN
jar/JNUSTool.jar
Binary file not shown.
BIN
release.zip
BIN
release.zip
Binary file not shown.
@ -227,7 +227,11 @@ public class NUSTitle {
|
|||||||
Downloader.getInstance().downloadTMD(titleID,version,getContentPath());
|
Downloader.getInstance().downloadTMD(titleID,version,getContentPath());
|
||||||
tmd.downloadContents(progress);
|
tmd.downloadContents(progress);
|
||||||
try{
|
try{
|
||||||
Downloader.getInstance().downloadTicket(titleID,getContentPath());
|
File f = new File(getContentPath() + "/" + "title.tik");
|
||||||
|
if(!f.exists()){
|
||||||
|
Downloader.getInstance().downloadTicket(titleID,getContentPath());
|
||||||
|
}
|
||||||
|
|
||||||
FileOutputStream fos = new FileOutputStream(getContentPath() + "/title.cert");
|
FileOutputStream fos = new FileOutputStream(getContentPath() + "/title.cert");
|
||||||
fos.write(ticket.cert0);
|
fos.write(ticket.cert0);
|
||||||
fos.write(tmd.cert);
|
fos.write(tmd.cert);
|
||||||
@ -241,11 +245,12 @@ public class NUSTitle {
|
|||||||
fos.close();
|
fos.close();
|
||||||
}
|
}
|
||||||
}catch(Exception e){
|
}catch(Exception e){
|
||||||
|
e.printStackTrace();
|
||||||
Logger.log("Error while creating ticket files.");
|
Logger.log("Error while creating ticket files.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
NUSTitleInformation readMeta(InputStream bis) {
|
public NUSTitleInformation readMeta(InputStream bis) {
|
||||||
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
|
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
|
||||||
DocumentBuilder builder;
|
DocumentBuilder builder;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user