diff --git a/jar/JNUSTool.jar b/jar/JNUSTool.jar index 3d6385a..a085bf6 100644 Binary files a/jar/JNUSTool.jar and b/jar/JNUSTool.jar differ diff --git a/release.zip b/release.zip index 6222dc4..327f354 100644 Binary files a/release.zip and b/release.zip differ diff --git a/src/de/mas/jnustool/NUSTitle.java b/src/de/mas/jnustool/NUSTitle.java index 6fd5deb..9a64d3e 100644 --- a/src/de/mas/jnustool/NUSTitle.java +++ b/src/de/mas/jnustool/NUSTitle.java @@ -227,7 +227,11 @@ public class NUSTitle { Downloader.getInstance().downloadTMD(titleID,version,getContentPath()); tmd.downloadContents(progress); 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"); fos.write(ticket.cert0); fos.write(tmd.cert); @@ -241,11 +245,12 @@ public class NUSTitle { fos.close(); } }catch(Exception e){ + e.printStackTrace(); Logger.log("Error while creating ticket files."); } } - NUSTitleInformation readMeta(InputStream bis) { + public NUSTitleInformation readMeta(InputStream bis) { DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); DocumentBuilder builder;