fix loader killing reflection to the loader before the client can access it
All checks were successful
/ Build BaseBand Loader (push) Successful in 1m40s

This commit is contained in:
Daniella / Tove 2024-06-25 09:20:41 +02:00
parent 4e1aa9ad45
commit 7466529ffd
Signed by: TudbuT
GPG key ID: B3CF345217F202D3
2 changed files with 4 additions and 3 deletions

View file

@ -12,7 +12,7 @@ public class LoadHandler {
public static void loaded(Map<String, String> data) {
LoadHandler.data = TCN.readMap(data);
try {
Class.forName("de.com.baseband.launcher.Tweaker").getDeclaredMethod("loaded", Class.class).invoke(null, BaseBand.class);
Class.forName("de.com.baseband.launcher.Tweaker").getMethod("loaded", Class.class).invoke(null, BaseBand.class);
} catch (Exception e) {
throw new RuntimeException(e);
}

View file

@ -65,10 +65,10 @@ public class Loader implements Util {
public static void run() {
AccessKiller.killReflectionFor(
Tweaker.class,
Loader.class,
CustomClassLoader.class,
CustomClassLoader.CustomMixinServer.class);
AccessKiller.killFieldAccess(Loader.class);
AccessKiller.killMethodAccess(Loader.class);
TCN preOptions;
try {
@ -234,6 +234,7 @@ public class Loader implements Util {
public static void loaded(Class<?> baseBandClass) {
LOGGER.info("BaseBand was loaded successfully.");
Loader.baseBandClass = baseBandClass;
AccessKiller.killReflectionFor(Tweaker.class);
}
private static TCN getData() throws Exception {