From 2e1c6c22ff31af2223bac83e0a9dfac63c97a80b Mon Sep 17 00:00:00 2001 From: Graham Date: Thu, 12 Mar 2020 20:12:13 +0000 Subject: [PATCH] Rename GlConstantTransformer to GlTransformer It transforms more than just constants now. Signed-off-by: Graham --- .../src/main/java/dev/openrs2/deob/ast/AstDeobfuscator.kt | 4 ++-- .../transform/{GlConstantTransformer.kt => GlTransformer.kt} | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) rename deob-ast/src/main/java/dev/openrs2/deob/ast/transform/{GlConstantTransformer.kt => GlTransformer.kt} (99%) diff --git a/deob-ast/src/main/java/dev/openrs2/deob/ast/AstDeobfuscator.kt b/deob-ast/src/main/java/dev/openrs2/deob/ast/AstDeobfuscator.kt index 3a4b573982..fa688d51f4 100644 --- a/deob-ast/src/main/java/dev/openrs2/deob/ast/AstDeobfuscator.kt +++ b/deob-ast/src/main/java/dev/openrs2/deob/ast/AstDeobfuscator.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.EncloseTransformer 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.IfElseTransformer import dev.openrs2.deob.ast.transform.IncrementTransformer @@ -100,7 +100,7 @@ class AstDeobfuscator(private val modules: List) { NewInstanceTransformer(), IncrementTransformer(), ForLoopConditionTransformer(), - GlConstantTransformer(), + GlTransformer(), EncloseTransformer() ) } diff --git a/deob-ast/src/main/java/dev/openrs2/deob/ast/transform/GlConstantTransformer.kt b/deob-ast/src/main/java/dev/openrs2/deob/ast/transform/GlTransformer.kt similarity index 99% rename from deob-ast/src/main/java/dev/openrs2/deob/ast/transform/GlConstantTransformer.kt rename to deob-ast/src/main/java/dev/openrs2/deob/ast/transform/GlTransformer.kt index a1d42a7dc7..94145f4516 100644 --- a/deob-ast/src/main/java/dev/openrs2/deob/ast/transform/GlConstantTransformer.kt +++ b/deob-ast/src/main/java/dev/openrs2/deob/ast/transform/GlTransformer.kt @@ -26,7 +26,7 @@ import dev.openrs2.deob.ast.gl.GlRegistry import dev.openrs2.deob.ast.util.checkedAsInt 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() override fun preTransform(units: Map) {