mirror of
https://github.com/Maschell/JNUSTool.git
synced 2024-11-24 08:59:19 +01:00
Added error message when the GUI can't be built
This commit is contained in:
parent
7a06b71c47
commit
1177adff2c
BIN
jar/JNUSTool.jar
BIN
jar/JNUSTool.jar
Binary file not shown.
BIN
release.zip
BIN
release.zip
Binary file not shown.
@ -25,7 +25,7 @@ public class Starter {
|
|||||||
private static String updateCSVPath;
|
private static String updateCSVPath;
|
||||||
|
|
||||||
public static void main(String[] args) {
|
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("");
|
Logger.log("");
|
||||||
try {
|
try {
|
||||||
readConfig();
|
readConfig();
|
||||||
|
@ -30,6 +30,10 @@ public class NUSGUI extends JFrame {
|
|||||||
public NUSGUI(NUSTitle nus) {
|
public NUSGUI(NUSTitle nus) {
|
||||||
super();
|
super();
|
||||||
this.setResizable(false);
|
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);
|
setSize(600, 768);
|
||||||
setTitle(String.format("%016X", nus.getTitleID()));
|
setTitle(String.format("%016X", nus.getTitleID()));
|
||||||
getContentPane().setLayout(null);
|
getContentPane().setLayout(null);
|
||||||
@ -43,6 +47,7 @@ public class NUSGUI extends JFrame {
|
|||||||
|
|
||||||
|
|
||||||
this.getContentPane().add(splitPane);
|
this.getContentPane().add(splitPane);
|
||||||
|
|
||||||
final JCheckBoxTree cbt = new JCheckBoxTree(nus);
|
final JCheckBoxTree cbt = new JCheckBoxTree(nus);
|
||||||
qPane.setViewportView(cbt);
|
qPane.setViewportView(cbt);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user