Rename Js5Library{Reader,Writer} to PackClassLibrary{Reader,Writer}

JS5 seems to refer to many things, so I'm intending to name Jagex's
custom class file format "packclass" instead of "js5". My reasoning is
that the tool for unpacking it is called unpackclass. If you use the
same logic behind naming the Pack200 packer unpack200, then "packclass"
is a reasonable name for Jagex's class file format.

Signed-off-by: Graham <gpe@openrs2.dev>
bzip2
Graham 4 years ago
parent 7903e547dd
commit 72a0642db3
  1. 2
      asm/src/main/java/dev/openrs2/asm/io/PackClassLibraryReader.kt
  2. 2
      asm/src/main/java/dev/openrs2/asm/io/PackClassLibraryWriter.kt
  3. 8
      bundler/src/main/java/dev/openrs2/bundler/Bundler.kt

@ -3,7 +3,7 @@ package dev.openrs2.asm.io
import dev.openrs2.asm.classpath.Library import dev.openrs2.asm.classpath.Library
import java.io.InputStream import java.io.InputStream
object Js5LibraryReader : LibraryReader { object PackClassLibraryReader : LibraryReader {
override fun read(input: InputStream): Library { override fun read(input: InputStream): Library {
// TODO(gpe): implement // TODO(gpe): implement
return Library() return Library()

@ -4,7 +4,7 @@ import dev.openrs2.asm.classpath.ClassPath
import dev.openrs2.asm.classpath.Library import dev.openrs2.asm.classpath.Library
import java.io.OutputStream import java.io.OutputStream
object Js5LibraryWriter : LibraryWriter { object PackClassLibraryWriter : LibraryWriter {
override fun write(output: OutputStream, classPath: ClassPath, library: Library) { override fun write(output: OutputStream, classPath: ClassPath, library: Library) {
// TODO(gpe): implement // TODO(gpe): implement
} }

@ -5,10 +5,10 @@ import dev.openrs2.asm.classpath.ClassPath
import dev.openrs2.asm.classpath.Library import dev.openrs2.asm.classpath.Library
import dev.openrs2.asm.io.JarLibraryReader import dev.openrs2.asm.io.JarLibraryReader
import dev.openrs2.asm.io.JarLibraryWriter import dev.openrs2.asm.io.JarLibraryWriter
import dev.openrs2.asm.io.Js5LibraryWriter
import dev.openrs2.asm.io.ManifestJarLibraryWriter import dev.openrs2.asm.io.ManifestJarLibraryWriter
import dev.openrs2.asm.io.Pack200LibraryReader import dev.openrs2.asm.io.Pack200LibraryReader
import dev.openrs2.asm.io.Pack200LibraryWriter import dev.openrs2.asm.io.Pack200LibraryWriter
import dev.openrs2.asm.io.PackClassLibraryWriter
import dev.openrs2.asm.io.SignedJarLibraryWriter import dev.openrs2.asm.io.SignedJarLibraryWriter
import dev.openrs2.asm.transform.Transformer import dev.openrs2.asm.transform.Transformer
import dev.openrs2.bundler.transform.ResourceTransformer import dev.openrs2.bundler.transform.ResourceTransformer
@ -85,19 +85,19 @@ class Bundler @Inject constructor(
"runescape.pack200", "main_file_cache.dat0", classPath, client, Pack200LibraryWriter "runescape.pack200", "main_file_cache.dat0", classPath, client, Pack200LibraryWriter
) )
val clientJs5 = Resource.compressLibrary( val clientJs5 = Resource.compressLibrary(
"runescape.js5", "main_file_cache.dat1", classPath, client, Js5LibraryWriter "runescape.js5", "main_file_cache.dat1", classPath, client, PackClassLibraryWriter
) )
val glClientPack = Resource.compressLibrary( val glClientPack = Resource.compressLibrary(
"runescape_gl.pack200", "main_file_cache.dat3", glClassPath, glClient, Pack200LibraryWriter "runescape_gl.pack200", "main_file_cache.dat3", glClassPath, glClient, Pack200LibraryWriter
) )
val glClientJs5 = Resource.compressLibrary( val glClientJs5 = Resource.compressLibrary(
"runescape_gl.js5", "main_file_cache.dat4", glClassPath, glClient, Js5LibraryWriter "runescape_gl.js5", "main_file_cache.dat4", glClassPath, glClient, PackClassLibraryWriter
) )
val glPack = Resource.compressLibrary( val glPack = Resource.compressLibrary(
"jaggl.pack200", "main_file_cache.dat5", glClassPath, gl, Pack200LibraryWriter "jaggl.pack200", "main_file_cache.dat5", glClassPath, gl, Pack200LibraryWriter
) )
val glJs5 = Resource.compressLibrary( val glJs5 = Resource.compressLibrary(
"jaggl.js5", "main_file_cache.dat6", glClassPath, gl, Js5LibraryWriter "jaggl.js5", "main_file_cache.dat6", glClassPath, gl, PackClassLibraryWriter
) )
val glNatives = Resource.compressGlNatives() val glNatives = Resource.compressGlNatives()

Loading…
Cancel
Save