Rename GlConstantTransformer to GlTransformer

It transforms more than just constants now.

Signed-off-by: Graham <gpe@openrs2.dev>
bzip2
Graham 5 years ago
parent c9a3580e11
commit 2e1c6c22ff
  1. 4
      deob-ast/src/main/java/dev/openrs2/deob/ast/AstDeobfuscator.kt
  2. 2
      deob-ast/src/main/java/dev/openrs2/deob/ast/transform/GlTransformer.kt

@ -15,7 +15,7 @@ import dev.openrs2.deob.ast.transform.BitMaskTransformer
import dev.openrs2.deob.ast.transform.ComplementTransformer import dev.openrs2.deob.ast.transform.ComplementTransformer
import dev.openrs2.deob.ast.transform.EncloseTransformer import dev.openrs2.deob.ast.transform.EncloseTransformer
import dev.openrs2.deob.ast.transform.ForLoopConditionTransformer import dev.openrs2.deob.ast.transform.ForLoopConditionTransformer
import dev.openrs2.deob.ast.transform.GlConstantTransformer import dev.openrs2.deob.ast.transform.GlTransformer
import dev.openrs2.deob.ast.transform.IdentityTransformer import dev.openrs2.deob.ast.transform.IdentityTransformer
import dev.openrs2.deob.ast.transform.IfElseTransformer import dev.openrs2.deob.ast.transform.IfElseTransformer
import dev.openrs2.deob.ast.transform.IncrementTransformer import dev.openrs2.deob.ast.transform.IncrementTransformer
@ -100,7 +100,7 @@ class AstDeobfuscator(private val modules: List<Path>) {
NewInstanceTransformer(), NewInstanceTransformer(),
IncrementTransformer(), IncrementTransformer(),
ForLoopConditionTransformer(), ForLoopConditionTransformer(),
GlConstantTransformer(), GlTransformer(),
EncloseTransformer() EncloseTransformer()
) )
} }

@ -26,7 +26,7 @@ import dev.openrs2.deob.ast.gl.GlRegistry
import dev.openrs2.deob.ast.util.checkedAsInt import dev.openrs2.deob.ast.util.checkedAsInt
import dev.openrs2.deob.ast.util.walk import dev.openrs2.deob.ast.util.walk
class GlConstantTransformer(private val registry: GlRegistry = GlRegistry.parse()) : Transformer() { class GlTransformer(private val registry: GlRegistry = GlRegistry.parse()) : Transformer() {
private val enums = mutableSetOf<GlEnum>() private val enums = mutableSetOf<GlEnum>()
override fun preTransform(units: Map<String, CompilationUnit>) { override fun preTransform(units: Map<String, CompilationUnit>) {
Loading…
Cancel
Save