From 752941f9f366c4ab06d40be336aa037d996ce717 Mon Sep 17 00:00:00 2001 From: Graham Date: Sat, 29 Feb 2020 14:50:43 +0000 Subject: [PATCH] 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. --- .../java/dev/openrs2/deob/transform/VisibilityTransformer.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deob/src/main/java/dev/openrs2/deob/transform/VisibilityTransformer.kt b/deob/src/main/java/dev/openrs2/deob/transform/VisibilityTransformer.kt index adc4ee0535..a2fc79bc06 100644 --- a/deob/src/main/java/dev/openrs2/deob/transform/VisibilityTransformer.kt +++ b/deob/src/main/java/dev/openrs2/deob/transform/VisibilityTransformer.kt @@ -156,7 +156,7 @@ class VisibilityTransformer : Transformer() { companion object { private val logger = InlineLogger() 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 fun addReference(