move to new path on download server
All checks were successful
/ Build BaseBand Loader (push) Successful in 1m55s
All checks were successful
/ Build BaseBand Loader (push) Successful in 1m55s
This commit is contained in:
parent
67adfc65fd
commit
2225f80f0f
1 changed files with 3 additions and 3 deletions
|
@ -91,7 +91,7 @@ public class Loader implements Util {
|
||||||
preOptions.setIfAbsent("timeout", 5);
|
preOptions.setIfAbsent("timeout", 5);
|
||||||
TCN branches;
|
TCN branches;
|
||||||
try {
|
try {
|
||||||
branches = JSON.read(new StreamReader(new URL("https://download.baseband.com.de/branches").openStream()).readAllAsString());
|
branches = JSON.read(new StreamReader(new URL("https://download.baseband.com.de/1.12.2/branches").openStream()).readAllAsString());
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
exit();
|
exit();
|
||||||
return;
|
return;
|
||||||
|
@ -363,7 +363,7 @@ public class Loader implements Util {
|
||||||
}
|
}
|
||||||
|
|
||||||
options.set("build-name", branches.getSub(options.getString("branch")).getString("name"));
|
options.set("build-name", branches.getSub(options.getString("branch")).getString("name"));
|
||||||
HashMap<String, byte[]> data = downloadFromSPL("https://download.baseband.com.de/download/client/" + options.getString("branch"), null);
|
HashMap<String, byte[]> data = downloadFromSPL("https://download.baseband.com.de/1.12.2/download/client/" + options.getString("branch"), null);
|
||||||
LOGGER.info("BaseBand downloaded: {} chunks.", data.size());
|
LOGGER.info("BaseBand downloaded: {} chunks.", data.size());
|
||||||
LOGGER.info("Booting BaseBand {} @ {}", options.getString("build-name"), new String(data.get("commit")).trim());
|
LOGGER.info("Booting BaseBand {} @ {}", options.getString("build-name"), new String(data.get("commit")).trim());
|
||||||
classLoader = new GameClassLoader(data);
|
classLoader = new GameClassLoader(data);
|
||||||
|
@ -374,7 +374,7 @@ public class Loader implements Util {
|
||||||
|
|
||||||
private static void splUpdate() {
|
private static void splUpdate() {
|
||||||
LOGGER.info("BaseBand is downloading a significant update...");
|
LOGGER.info("BaseBand is downloading a significant update...");
|
||||||
SimpleClassLoader loaderReloader = new SimpleClassLoader(downloadFromSPL("https://download.baseband.com.de/download/loader", HTTPUtils.decodeUTF8(Loader.class.getProtectionDomain().getCodeSource().getLocation().getFile())));
|
SimpleClassLoader loaderReloader = new SimpleClassLoader(downloadFromSPL("https://download.baseband.com.de/1.12.2/download/loader", HTTPUtils.decodeUTF8(Loader.class.getProtectionDomain().getCodeSource().getLocation().getFile())));
|
||||||
LOGGER.info("BaseBand has downloaded a significant update. Applying...");
|
LOGGER.info("BaseBand has downloaded a significant update. Applying...");
|
||||||
try {
|
try {
|
||||||
loaderReloader.loadClass(Tweaker.class.getName()).getMethod("load").invoke(null);
|
loaderReloader.loadClass(Tweaker.class.getName()).getMethod("load").invoke(null);
|
||||||
|
|
Loading…
Add table
Reference in a new issue