Run RemapTransformer as early as possible

The aim of this change is to ensure that the automatically chosen class,
field and method names stay as similar as possible between runs.

Signed-off-by: Graham <gpe@openrs2.dev>
Graham 5 years ago
parent 71413256da
commit 0bd10234b8
  1. 6
      deob/src/main/java/dev/openrs2/deob/DeobfuscatorModule.kt

@ -47,6 +47,9 @@ object DeobfuscatorModule : AbstractModule() {
val binder = Multibinder.newSetBinder(binder(), Transformer::class.java, DeobfuscatorQualifier::class.java)
binder.addBinding().to(OriginalPcSaveTransformer::class.java)
binder.addBinding().to(OriginalNameTransformer::class.java)
binder.addBinding().to(ClassLiteralTransformer::class.java)
binder.addBinding().to(InvokeSpecialTransformer::class.java)
binder.addBinding().to(RemapTransformer::class.java)
binder.addBinding().to(BundlerTransformer::class.java)
binder.addBinding().to(ResourceTransformer::class.java)
binder.addBinding().to(OpaquePredicateTransformer::class.java)
@ -56,9 +59,6 @@ object DeobfuscatorModule : AbstractModule() {
binder.addBinding().to(CanvasTransformer::class.java)
binder.addBinding().to(FieldOrderTransformer::class.java)
binder.addBinding().to(BitwiseOpTransformer::class.java)
binder.addBinding().to(ClassLiteralTransformer::class.java)
binder.addBinding().to(InvokeSpecialTransformer::class.java)
binder.addBinding().to(RemapTransformer::class.java)
binder.addBinding().to(ConstantArgTransformer::class.java)
binder.addBinding().to(UnusedLocalTransformer::class.java)
binder.addBinding().to(UnusedMethodTransformer::class.java)

Loading…
Cancel
Save