Add unpackclass to DEFAULT_PUBLIC_CTOR_CLASSES

It is loaded with ClassLoader::loadClass() instead of Class.forName(),
so our automatic detection code doesn't find it.
master
Graham 5 years ago
parent 626cbacc06
commit 752941f9f3
  1. 2
      deob/src/main/java/dev/openrs2/deob/transform/VisibilityTransformer.kt

@ -156,7 +156,7 @@ class VisibilityTransformer : Transformer() {
companion object { companion object {
private val logger = InlineLogger() private val logger = InlineLogger()
private const val VISIBILITY_FLAGS = Opcodes.ACC_PUBLIC or Opcodes.ACC_PROTECTED or Opcodes.ACC_PRIVATE private const val VISIBILITY_FLAGS = Opcodes.ACC_PUBLIC or Opcodes.ACC_PROTECTED or Opcodes.ACC_PRIVATE
private val DEFAULT_PUBLIC_CTOR_CLASSES = setOf("client", "loader") private val DEFAULT_PUBLIC_CTOR_CLASSES = setOf("client", "loader", "unpackclass")
private val PUBLIC_METHODS = setOf("main", "providesignlink") private val PUBLIC_METHODS = setOf("main", "providesignlink")
private fun addReference( private fun addReference(

Loading…
Cancel
Save