Add deob-map dependency to the deobfuscator

Signed-off-by: Graham <gpe@openrs2.dev>
bzip2
Graham 5 years ago
parent 3b48e57679
commit 0d4daca1a1
  1. 1
      deob/build.gradle.kts
  2. 2
      deob/src/main/java/dev/openrs2/deob/DeobfuscatorModule.kt

@ -13,6 +13,7 @@ dependencies {
implementation(project(":bundler")) implementation(project(":bundler"))
implementation(project(":deob-annotations")) implementation(project(":deob-annotations"))
implementation(project(":deob-map"))
implementation("com.google.guava:guava:${Versions.guava}") implementation("com.google.guava:guava:${Versions.guava}")
implementation("it.unimi.dsi:fastutil:${Versions.fastutil}") implementation("it.unimi.dsi:fastutil:${Versions.fastutil}")
implementation("org.jgrapht:jgrapht-core:${Versions.jgrapht}") implementation("org.jgrapht:jgrapht-core:${Versions.jgrapht}")

@ -5,6 +5,7 @@ import com.google.inject.multibindings.Multibinder
import dev.openrs2.asm.transform.Transformer import dev.openrs2.asm.transform.Transformer
import dev.openrs2.bundler.BundlerModule import dev.openrs2.bundler.BundlerModule
import dev.openrs2.bundler.transform.ResourceTransformer import dev.openrs2.bundler.transform.ResourceTransformer
import dev.openrs2.deob.map.DeobfuscatorMapModule
import dev.openrs2.deob.transform.BitShiftTransformer import dev.openrs2.deob.transform.BitShiftTransformer
import dev.openrs2.deob.transform.BitwiseOpTransformer import dev.openrs2.deob.transform.BitwiseOpTransformer
import dev.openrs2.deob.transform.BundlerTransformer import dev.openrs2.deob.transform.BundlerTransformer
@ -37,6 +38,7 @@ import dev.openrs2.deob.transform.VisibilityTransformer
object DeobfuscatorModule : AbstractModule() { object DeobfuscatorModule : AbstractModule() {
override fun configure() { override fun configure() {
install(BundlerModule) install(BundlerModule)
install(DeobfuscatorMapModule)
val binder = Multibinder.newSetBinder(binder(), Transformer::class.java, DeobfuscatorQualifier::class.java) val binder = Multibinder.newSetBinder(binder(), Transformer::class.java, DeobfuscatorQualifier::class.java)
binder.addBinding().to(OriginalPcSaveTransformer::class.java) binder.addBinding().to(OriginalPcSaveTransformer::class.java)

Loading…
Cancel
Save