fix loader killing reflection to the loader before the client can access it
All checks were successful
/ Build BaseBand Loader (push) Successful in 1m40s
All checks were successful
/ Build BaseBand Loader (push) Successful in 1m40s
This commit is contained in:
parent
4e1aa9ad45
commit
7466529ffd
2 changed files with 4 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue