move to new path on download server
All checks were successful
/ Build BaseBand Loader (push) Successful in 1m55s

This commit is contained in:
Daniella / Tove 2024-10-14 02:52:33 +02:00
parent 67adfc65fd
commit 2225f80f0f
Signed by: TudbuT
GPG key ID: B3CF345217F202D3

View file

@ -91,7 +91,7 @@ public class Loader implements Util {
preOptions.setIfAbsent("timeout", 5);
TCN branches;
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) {
exit();
return;
@ -363,7 +363,7 @@ public class Loader implements Util {
}
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("Booting BaseBand {} @ {}", options.getString("build-name"), new String(data.get("commit")).trim());
classLoader = new GameClassLoader(data);
@ -374,7 +374,7 @@ public class Loader implements Util {
private static void splUpdate() {
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...");
try {
loaderReloader.loadClass(Tweaker.class.getName()).getMethod("load").invoke(null);