Convert OriginalNameTransformer to a standard Transformer

bzip2
Graham 5 years ago
parent 318f906ab5
commit c6d184c5c5
  1. 8
      deob/src/main/java/dev/openrs2/deob/Deobfuscator.java

@ -32,6 +32,7 @@ public final class Deobfuscator {
private static final Logger logger = LoggerFactory.getLogger(Deobfuscator.class); private static final Logger logger = LoggerFactory.getLogger(Deobfuscator.class);
private static final ImmutableList<Transformer> TRANSFORMERS = ImmutableList.of( private static final ImmutableList<Transformer> TRANSFORMERS = ImmutableList.of(
new OriginalNameTransformer(),
new HostCheckTransformer(), new HostCheckTransformer(),
new RightClickTransformer(), new RightClickTransformer(),
new OpaquePredicateTransformer(), new OpaquePredicateTransformer(),
@ -148,13 +149,6 @@ public final class Deobfuscator {
transformer = new ClassForNameTransformer(unsignedRemapper); transformer = new ClassForNameTransformer(unsignedRemapper);
transformer.transform(unsignedClassPath); transformer.transform(unsignedClassPath);
/* add @OriginalName annotations */
logger.info("Annotating classes and members with original names");
transformer = new OriginalNameTransformer();
transformer.transform(classPath);
transformer.transform(glClassPath);
transformer.transform(unsignedClassPath);
/* write output jars */ /* write output jars */
logger.info("Writing output jars"); logger.info("Writing output jars");

Loading…
Cancel
Save