Combine the deobfuscator's jaggl and jaggl_dri outputs

The split is no longer required - we haven't run javah automatically
since splitting the natives out into a separate repository.

Signed-off-by: Graham <gpe@openrs2.dev>
bzip2
Graham 5 years ago
parent f5a0680348
commit 6326aa93db
  1. 2
      decompiler/src/main/java/dev/openrs2/decompiler/Decompiler.kt
  2. 10
      deob/src/main/java/dev/openrs2/deob/Deobfuscator.kt

@ -11,7 +11,6 @@ private fun getDestination(archive: String): Path {
when (dir) {
"runescape" -> dir = "client"
"jaggl" -> dir = "gl"
"jaggl_dri" -> dir = "gl-dri"
}
return Paths.get("nonfree").resolve(dir).resolve("src/main/java")
}
@ -21,7 +20,6 @@ fun main() {
val sources = listOf(
deobOutput.resolve("runescape_gl.jar"),
deobOutput.resolve("jaggl.jar"),
deobOutput.resolve("jaggl_dri.jar"),
deobOutput.resolve("loader_gl.jar"),
deobOutput.resolve("signlink_gl.jar"),
deobOutput.resolve("unpack_gl.jar"),

@ -80,13 +80,6 @@ class Deobfuscator(private val input: Path, private val output: Path) {
val glUnpack = Library()
glUnpack.add(glLoader.remove("unpack")!!)
// move DRI classes out of jaggl (so we can place javah-generated headers in a separate directory)
logger.info { "Moving DRI classes from jaggl to jaggl_dri" }
val glDri = Library()
glDri.add(gl.remove("com/sun/opengl/impl/x11/DRIHack")!!)
glDri.add(gl.remove("com/sun/opengl/impl/x11/DRIHack$1")!!)
glDri.add(gl.remove("jaggl/X11/dri")!!)
// prefix remaining loader/unpacker classes (to avoid conflicts when we rename in the same classpath as the client)
logger.info { "Prefixing loader and unpacker class names" }
loader.remap(create(loader, "loader_"))
@ -103,7 +96,7 @@ class Deobfuscator(private val input: Path, private val output: Path) {
)
val glClassPath = ClassPath(
runtime,
dependencies = listOf(gl, glDri),
dependencies = listOf(gl),
libraries = listOf(glClient, glLoader, glSignLink, glUnpack, glUnpacker)
)
val unsignedClassPath = ClassPath(
@ -143,7 +136,6 @@ class Deobfuscator(private val input: Path, private val output: Path) {
unpacker.writeJar(classPath, output.resolve("unpacker.jar"))
gl.writeJar(glClassPath, output.resolve("jaggl.jar"))
glDri.writeJar(glClassPath, output.resolve("jaggl_dri.jar"))
glClient.writeJar(glClassPath, output.resolve("runescape_gl.jar"))
glLoader.writeJar(glClassPath, output.resolve("loader_gl.jar"))
glSignLink.writeJar(glClassPath, output.resolve("signlink_gl.jar"))

Loading…
Cancel
Save