Added error message when the GUI can't be built

This commit is contained in:
Maschell 2016-10-23 14:40:15 +02:00
parent 7a06b71c47
commit 1177adff2c
4 changed files with 6 additions and 1 deletions

Binary file not shown.

Binary file not shown.

View File

@ -25,7 +25,7 @@ public class Starter {
private static String updateCSVPath;
public static void main(String[] args) {
Logger.log("JNUSTool 0.0.8b - alpha - by Maschell");
Logger.log("JNUSTool 0.0.8c - alpha - by Maschell");
Logger.log("");
try {
readConfig();

View File

@ -30,6 +30,10 @@ public class NUSGUI extends JFrame {
public NUSGUI(NUSTitle nus) {
super();
this.setResizable(false);
if(nus.getFst() == null){
Logger.log("Error: Can't create GUI window without the FST. Please provide a key/title.key. To download the encrpyted files use the -dlEncrypted argument");
System.exit(-1);
}
setSize(600, 768);
setTitle(String.format("%016X", nus.getTitleID()));
getContentPane().setLayout(null);
@ -43,6 +47,7 @@ public class NUSGUI extends JFrame {
this.getContentPane().add(splitPane);
final JCheckBoxTree cbt = new JCheckBoxTree(nus);
qPane.setViewportView(cbt);