aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/github/moulberry/notenoughupdates/NEUManager.java
diff options
context:
space:
mode:
authorDoKM <mcazzyman@gmail.com>2021-07-23 18:03:23 +0200
committerDoKM <mcazzyman@gmail.com>2021-07-23 18:03:23 +0200
commitc8f7b7119b5ced019b02faa46136f94716516f19 (patch)
tree739d7465d603ec8221432fac0b132282aae32414 /src/main/java/io/github/moulberry/notenoughupdates/NEUManager.java
parentb19c711aadd8b6e41b52226c4f43d7689b9cfaa4 (diff)
downloadnotenoughupdates-c8f7b7119b5ced019b02faa46136f94716516f19.tar.gz
notenoughupdates-c8f7b7119b5ced019b02faa46136f94716516f19.tar.bz2
notenoughupdates-c8f7b7119b5ced019b02faa46136f94716516f19.zip
Introduce alot of fixes from Ironm00n's pull request
not everything though missing his cape (thats not for me to do) and his version checker for PRE's
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/NEUManager.java')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/NEUManager.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/NEUManager.java b/src/main/java/io/github/moulberry/notenoughupdates/NEUManager.java
index 181b9225..38925b77 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/NEUManager.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/NEUManager.java
@@ -66,7 +66,7 @@ public class NEUManager {
private ExecutorService repoLoaderES = Executors.newSingleThreadExecutor();
- private static final String GIT_COMMITS_URL = "https://api.github.com/repos/Moulberry/NotEnoughUpdates-REPO/commits/master";
+ private static String GIT_COMMITS_URL;
private HashMap<String, Set<String>> usagesMap = new HashMap<>();
@@ -80,6 +80,7 @@ public class NEUManager {
this.neu = neu;
this.configLocation = configLocation;
this.auctionManager = new APIManager(this);
+ GIT_COMMITS_URL = neu.config.hidden.repoCommitsURL;
gson = new GsonBuilder().setPrettyPrinting().create();
@@ -188,8 +189,8 @@ public class NEUManager {
Utils.recursiveDelete(repoLocation);
repoLocation.mkdirs();
- //TODO: Store hard-coded value somewhere else
- String dlUrl = "https://github.com/Moulberry/NotEnoughUpdates-REPO/archive/master.zip";
+
+ String dlUrl = neu.config.hidden.repoURL;
pane.setMessage("Downloading NEU Master Archive. (DL# >20)");
dialog.pack();