From 90bae0c04a2fba221c903772e434b3ecd7be9b21 Mon Sep 17 00:00:00 2001 From: Simon Rieger Date: Mon, 17 Oct 2016 11:22:09 +0200 Subject: [PATCH] Zielorientiertes Installieren von Modpacks --- src/forgemodpackbuilder/GUI.java | 4 ++++ src/forgemodpackbuilder/UnZip.java | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/forgemodpackbuilder/GUI.java b/src/forgemodpackbuilder/GUI.java index 886b6d3..d045f78 100644 --- a/src/forgemodpackbuilder/GUI.java +++ b/src/forgemodpackbuilder/GUI.java @@ -297,6 +297,10 @@ public class GUI extends javax.swing.JFrame { OeffnenDialogClass a = new OeffnenDialogClass(); System.out.println("GUI = " + datei); UnZip.modpack = datei; + JOptionPane.showMessageDialog(null, "Bitte geben sie einen Installationsort für das Modpack!"); + OeffnenDialogClass.main(null); + System.out.println("GUI = " + datei); + UnZip.modpack1 = datei; UnZip.main(); jButton4ActionPerformed(evt); } catch (java.lang.NullPointerException ex) { diff --git a/src/forgemodpackbuilder/UnZip.java b/src/forgemodpackbuilder/UnZip.java index 97858de..4a9a53a 100644 --- a/src/forgemodpackbuilder/UnZip.java +++ b/src/forgemodpackbuilder/UnZip.java @@ -18,7 +18,7 @@ public class UnZip { static String modpack1 = ""; public static void main() { String source = modpack; - String destination = System.getProperty("user.home") + "/.minecraft"; + String destination = modpack1; String password = "mypassword"; try {