From 841f8132bbc138f60344f143d7c2aeefc995a685 Mon Sep 17 00:00:00 2001 From: Downforce Agent Date: Fri, 4 Oct 2024 13:14:19 -0500 Subject: [PATCH] I forgor --- firestar/src/main/java/Main.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/firestar/src/main/java/Main.java b/firestar/src/main/java/Main.java index 3f2ece4..a662c53 100644 --- a/firestar/src/main/java/Main.java +++ b/firestar/src/main/java/Main.java @@ -248,7 +248,10 @@ public class Main { final String expectedMD5Hash = "306807955266724172476879569959042600238"; // Prevent a malicious web server takeover from installing malware on the user's computer. String downloadedMD5Hash = ""; // if this number does not match for ANY reason, cancel immediately and get a programmer. try {downloadedMD5Hash = new BigInteger(1, MessageDigest.getInstance("MD5").digest(Files.readAllBytes(Paths.get(Main.inpath + "firesdk.zip")))).toString();} - catch (Exception e) {System.out.println("ERROR: Failed to download PSARC tool due to an internal problem.\n" + e.getMessage());} + catch (Exception e) { + System.out.println("ERROR: Failed to download PSARC tool due to an internal problem.\n" + e.getMessage()); + JOptionPane.showMessageDialog(null, "The file failed to download.\nPlease check your network connection and try again.\n\n" + e.getMessage(), "Download Failed", JOptionPane.WARNING_MESSAGE); + } if (!downloadedMD5Hash.equals(expectedMD5Hash)) { System.out.println("ERROR: Downloaded PSARC tool is invalid. Check your network connection and ensure the file is not corrupt or infected."); //Object[] options = {"Abort", "Retry"};