From 0b6e6fd276328904198ff26e524e38380b9520a7 Mon Sep 17 00:00:00 2001 From: Downforce Agent Date: Mon, 6 May 2024 23:36:41 -0500 Subject: [PATCH] how did i forget mod descriptions...? --- src/Kermit.java | 2 +- src/Main.java | 1 + src/MissPiggy.java | 6 +++++- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/Kermit.java b/src/Kermit.java index e156f5a..495e0ef 100644 --- a/src/Kermit.java +++ b/src/Kermit.java @@ -316,7 +316,7 @@ public class Kermit implements ActionListener { } if(checksum.equals("4ef707b2dba6944a726d46950aaddfd2")) {changePage(Pages.WHAT_OS);} else { - System.out.println("Failed to download PSARC tool because the connection stalled."); + System.out.println("ERROR: Failed to download PSARC tool. Check connection and ensure the file is not corrupt or infected."); dialogText.setText("Firestar tried to download important files needed for operation, but they were either corrupted or did not finish.\n" + "\n\nYou will need to manually install psp2psarc.exe into your Firestar config folder after setup is complete! Or, you can retry the download later."); //frame.setDefaultCloseOperation(DISPOSE_ON_CLOSE); diff --git a/src/Main.java b/src/Main.java index 2b1de39..6ac2799 100644 --- a/src/Main.java +++ b/src/Main.java @@ -45,6 +45,7 @@ public class Main { //public int gameversion; //TODO detect a game version and compatibility? // no public int priority = 0; //unused public String friendlyName; + public String description; public String game; //TODO for multi game support public int loaderversion = 0; //minimum required vint or feature level from Firestar public String author; // if null, "Author is unknown." diff --git a/src/MissPiggy.java b/src/MissPiggy.java index 1c2c24b..ebf3205 100644 --- a/src/MissPiggy.java +++ b/src/MissPiggy.java @@ -62,6 +62,7 @@ public class MissPiggy implements ActionListener { /// DEBUG /// Main.Mod testModEntry = new Main().new Mod(); //this is retarded? we're making a new object of a certain type, why the fuck do you care where it comes from? static or regardless?? testModEntry.friendlyName = "Example Mod 1"; + testModEntry.description = "Example Mod 1"; testModEntry.game = "2048"; testModEntry.path = "/home/bonkyboo/madarao_sneaky2_square.png"; //used to test file sizes testModEntry.version = 1; @@ -69,6 +70,7 @@ public class MissPiggy implements ActionListener { Main.Mods.add(testModEntry); Main.Mod testModEntry2 = new Main().new Mod(); testModEntry2.friendlyName = "Example Mod 2"; + testModEntry2.description = "Example Mod 2"; testModEntry2.author = "Daniel Chang"; testModEntry2.game = "2048"; testModEntry2.path = "/home/bonkyboo/chengou.mp4"; @@ -77,6 +79,7 @@ public class MissPiggy implements ActionListener { Main.Mods.add(testModEntry2); Main.Mod testModEntry3 = new Main().new Mod(); testModEntry3.friendlyName = "Example Mod 3"; + testModEntry3.description = "Example Mod 3"; testModEntry3.author = "John Dekka"; testModEntry3.game = "2048"; testModEntry3.path = "/home/bonkyboo/round2.mp4"; @@ -152,7 +155,8 @@ public class MissPiggy implements ActionListener { "\"" + Main.Mods.get(modList.getSelectedIndex()).friendlyName + "\"\n" + "by " + authorDisplay + "\n\n" + "Version " + Main.Mods.get(modList.getSelectedIndex()).version + "\n" + - modFileSizeStr + " " + modFileSizeUnits + " in size" + modFileSizeStr + " " + modFileSizeUnits + " in size" + + "\n\n" + Main.Mods.get(modList.getSelectedIndex()).description );}); // display window