Add outer class/method support to ClassNodeRemapper

Signed-off-by: Graham <gpe@openrs2.dev>
Graham 5 years ago
parent 882cbed44f
commit 45d59101b2
  1. 8
      asm/src/main/java/dev/openrs2/asm/ClassNodeRemapper.kt

@ -20,6 +20,14 @@ fun ClassNode.remap(remapper: ExtendedRemapper) {
superName = remapper.mapType(superName)
interfaces = interfaces?.map(remapper::mapType)
val originalOuterClass = outerClass
outerClass = remapper.mapType(originalOuterClass)
if (outerMethod != null) {
outerMethod = remapper.mapMethodName(originalOuterClass, outerMethod, outerMethodDesc)
outerMethodDesc = remapper.mapMethodDesc(outerMethodDesc)
}
for (field in fields) {
field.remap(remapper, originalName)
}

Loading…
Cancel
Save