From a91ba62bf8e2111d1c4ee6872b2ec87a8ec4b516 Mon Sep 17 00:00:00 2001 From: Wirlaburla Date: Sun, 21 Jul 2024 18:42:11 -0500 Subject: [PATCH] fix post fscript --- firestar/src/main/java/Gonzo.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/firestar/src/main/java/Gonzo.java b/firestar/src/main/java/Gonzo.java index c16a7a4..8d43a3d 100644 --- a/firestar/src/main/java/Gonzo.java +++ b/firestar/src/main/java/Gonzo.java @@ -218,8 +218,13 @@ public class Gonzo { // Post fscript changes try (InputStream is = Main.class.getResourceAsStream("/post.fscript")) { new Rizzo(is, Main.inpath + "temp/"); - } catch (IOException ex) { - Logger.getLogger(Gonzo.class.getName()).log(Level.SEVERE, null, ex); + } catch (IOException | FirescriptFormatException e) { + System.out.println(e.getMessage()); + consoleDisplay.append("CRITICAL FAILURE: " + e.getMessage()); + JOptionPane.showMessageDialog(this.frame, "CRITICAL FAILURE: " + e.getMessage(), "Fatal Error", JOptionPane.ERROR_MESSAGE); + frame.setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE); + AllowExit(); + return; } // create a list of the contents of data/ for psp2psarc.exe to read from