From f26695a0c1c75076abc510c3095d7295cb67d707 Mon Sep 17 00:00:00 2001 From: Graham Date: Wed, 31 Jul 2019 09:58:45 +0100 Subject: [PATCH] Remap Class.forName() calls in ClassNamePrefixer --- deob/src/main/java/dev/openrs2/deob/ClassNamePrefixer.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/deob/src/main/java/dev/openrs2/deob/ClassNamePrefixer.java b/deob/src/main/java/dev/openrs2/deob/ClassNamePrefixer.java index 6f1fdcfe..4921619c 100644 --- a/deob/src/main/java/dev/openrs2/deob/ClassNamePrefixer.java +++ b/deob/src/main/java/dev/openrs2/deob/ClassNamePrefixer.java @@ -4,6 +4,7 @@ import java.util.HashMap; import dev.openrs2.asm.Library; import dev.openrs2.deob.classpath.TypedRemapper; +import dev.openrs2.deob.transform.ClassForNameTransformer; import org.objectweb.asm.commons.ClassRemapper; import org.objectweb.asm.commons.SimpleRemapper; import org.objectweb.asm.tree.ClassNode; @@ -20,6 +21,9 @@ public final class ClassNamePrefixer { } var remapper = new SimpleRemapper(mapping); + var transformer = new ClassForNameTransformer(remapper); + transformer.transform(library); + for (var name : mapping.keySet()) { var in = library.remove(name);