forked from openrs2/openrs2
parent
6cda83b4bc
commit
ce5b76ef0f
@ -1,15 +1,15 @@ |
||||
package dev.openrs2 |
||||
package org.openrs2 |
||||
|
||||
import com.github.ajalt.clikt.core.NoOpCliktCommand |
||||
import com.github.ajalt.clikt.core.subcommands |
||||
import dev.openrs2.archive.ArchiveCommand |
||||
import dev.openrs2.bundler.BundleCommand |
||||
import dev.openrs2.compress.cli.CompressCommand |
||||
import dev.openrs2.crc32.Crc32Command |
||||
import dev.openrs2.decompiler.DecompileCommand |
||||
import dev.openrs2.deob.DeobfuscateCommand |
||||
import dev.openrs2.deob.ast.DeobfuscateAstCommand |
||||
import dev.openrs2.game.GameCommand |
||||
import org.openrs2.archive.ArchiveCommand |
||||
import org.openrs2.bundler.BundleCommand |
||||
import org.openrs2.compress.cli.CompressCommand |
||||
import org.openrs2.crc32.Crc32Command |
||||
import org.openrs2.decompiler.DecompileCommand |
||||
import org.openrs2.deob.DeobfuscateCommand |
||||
import org.openrs2.deob.ast.DeobfuscateAstCommand |
||||
import org.openrs2.game.GameCommand |
||||
|
||||
public fun main(args: Array<String>): Unit = Command().main(args) |
||||
|
@ -1,10 +1,10 @@ |
||||
package dev.openrs2.archive |
||||
package org.openrs2.archive |
||||
|
||||
import com.github.ajalt.clikt.core.NoOpCliktCommand |
||||
import com.github.ajalt.clikt.core.subcommands |
||||
import dev.openrs2.archive.cache.CacheCommand |
||||
import dev.openrs2.archive.key.KeyCommand |
||||
import dev.openrs2.archive.name.NameCommand |
||||
import org.openrs2.archive.cache.CacheCommand |
||||
import org.openrs2.archive.key.KeyCommand |
||||
import org.openrs2.archive.name.NameCommand |
||||
|
||||
public fun main(args: Array<String>): Unit = ArchiveCommand().main(args) |
||||
|
@ -1,10 +1,10 @@ |
||||
package dev.openrs2.archive |
||||
package org.openrs2.archive |
||||
|
||||
import com.google.inject.AbstractModule |
||||
import com.google.inject.Scopes |
||||
import dev.openrs2.buffer.BufferModule |
||||
import dev.openrs2.db.Database |
||||
import dev.openrs2.json.JsonModule |
||||
import org.openrs2.buffer.BufferModule |
||||
import org.openrs2.db.Database |
||||
import org.openrs2.json.JsonModule |
||||
|
||||
public object ArchiveModule : AbstractModule() { |
||||
override fun configure() { |
@ -1,4 +1,4 @@ |
||||
package dev.openrs2.archive.cache |
||||
package org.openrs2.archive.cache |
||||
|
||||
import com.github.ajalt.clikt.core.NoOpCliktCommand |
||||
import com.github.ajalt.clikt.core.subcommands |
@ -1,10 +1,10 @@ |
||||
package dev.openrs2.archive.cache |
||||
package org.openrs2.archive.cache |
||||
|
||||
import dev.openrs2.buffer.use |
||||
import dev.openrs2.cache.Store |
||||
import dev.openrs2.db.Database |
||||
import io.netty.buffer.ByteBufAllocator |
||||
import io.netty.buffer.Unpooled |
||||
import org.openrs2.buffer.use |
||||
import org.openrs2.cache.Store |
||||
import org.openrs2.db.Database |
||||
import javax.inject.Inject |
||||
import javax.inject.Singleton |
||||
|
@ -1,18 +1,18 @@ |
||||
package dev.openrs2.archive.cache |
||||
|
||||
import dev.openrs2.buffer.crc32 |
||||
import dev.openrs2.buffer.use |
||||
import dev.openrs2.cache.Js5Archive |
||||
import dev.openrs2.cache.Js5Compression |
||||
import dev.openrs2.cache.Js5Index |
||||
import dev.openrs2.cache.Store |
||||
import dev.openrs2.cache.VersionTrailer |
||||
import dev.openrs2.crypto.Whirlpool |
||||
import dev.openrs2.db.Database |
||||
package org.openrs2.archive.cache |
||||
|
||||
import io.netty.buffer.ByteBuf |
||||
import io.netty.buffer.ByteBufAllocator |
||||
import io.netty.buffer.ByteBufUtil |
||||
import io.netty.buffer.DefaultByteBufHolder |
||||
import org.openrs2.buffer.crc32 |
||||
import org.openrs2.buffer.use |
||||
import org.openrs2.cache.Js5Archive |
||||
import org.openrs2.cache.Js5Compression |
||||
import org.openrs2.cache.Js5Index |
||||
import org.openrs2.cache.Store |
||||
import org.openrs2.cache.VersionTrailer |
||||
import org.openrs2.crypto.Whirlpool |
||||
import org.openrs2.db.Database |
||||
import java.io.IOException |
||||
import java.sql.Connection |
||||
import java.sql.Types |
@ -1,13 +1,13 @@ |
||||
package dev.openrs2.archive.cache |
||||
package org.openrs2.archive.cache |
||||
|
||||
import com.github.ajalt.clikt.core.CliktCommand |
||||
import com.github.ajalt.clikt.parameters.arguments.argument |
||||
import com.github.ajalt.clikt.parameters.types.long |
||||
import com.github.ajalt.clikt.parameters.types.path |
||||
import com.google.inject.Guice |
||||
import dev.openrs2.archive.ArchiveModule |
||||
import dev.openrs2.cache.DiskStore |
||||
import kotlinx.coroutines.runBlocking |
||||
import org.openrs2.archive.ArchiveModule |
||||
import org.openrs2.cache.DiskStore |
||||
|
||||
public class ExportCommand : CliktCommand(name = "export") { |
||||
private val id by argument().long() |
@ -1,12 +1,12 @@ |
||||
package dev.openrs2.archive.cache |
||||
package org.openrs2.archive.cache |
||||
|
||||
import com.github.ajalt.clikt.core.CliktCommand |
||||
import com.github.ajalt.clikt.parameters.arguments.argument |
||||
import com.github.ajalt.clikt.parameters.types.path |
||||
import com.google.inject.Guice |
||||
import dev.openrs2.archive.ArchiveModule |
||||
import dev.openrs2.cache.Store |
||||
import kotlinx.coroutines.runBlocking |
||||
import org.openrs2.archive.ArchiveModule |
||||
import org.openrs2.cache.Store |
||||
|
||||
public class ImportCommand : CliktCommand(name = "import") { |
||||
private val input by argument().path( |
@ -1,9 +1,9 @@ |
||||
package dev.openrs2.archive.key |
||||
package org.openrs2.archive.key |
||||
|
||||
import com.github.ajalt.clikt.core.CliktCommand |
||||
import com.google.inject.Guice |
||||
import dev.openrs2.archive.ArchiveModule |
||||
import kotlinx.coroutines.runBlocking |
||||
import org.openrs2.archive.ArchiveModule |
||||
|
||||
public class BruteForceCommand : CliktCommand(name = "brute-force") { |
||||
override fun run(): Unit = runBlocking { |
@ -1,6 +1,6 @@ |
||||
package dev.openrs2.archive.key |
||||
package org.openrs2.archive.key |
||||
|
||||
import dev.openrs2.crypto.XteaKey |
||||
import org.openrs2.crypto.XteaKey |
||||
import java.io.InputStream |
||||
|
||||
public object HexKeyReader : KeyReader { |
@ -1,11 +1,11 @@ |
||||
package dev.openrs2.archive.key |
||||
package org.openrs2.archive.key |
||||
|
||||
import com.github.ajalt.clikt.core.CliktCommand |
||||
import com.github.ajalt.clikt.parameters.arguments.argument |
||||
import com.github.ajalt.clikt.parameters.types.path |
||||
import com.google.inject.Guice |
||||
import dev.openrs2.archive.ArchiveModule |
||||
import kotlinx.coroutines.runBlocking |
||||
import org.openrs2.archive.ArchiveModule |
||||
|
||||
public class ImportCommand : CliktCommand(name = "import") { |
||||
private val input by argument().path( |
@ -1,8 +1,8 @@ |
||||
package dev.openrs2.archive.key |
||||
package org.openrs2.archive.key |
||||
|
||||
import com.fasterxml.jackson.databind.ObjectMapper |
||||
import dev.openrs2.crypto.XteaKey |
||||
import dev.openrs2.json.Json |
||||
import org.openrs2.crypto.XteaKey |
||||
import org.openrs2.json.Json |
||||
import java.io.InputStream |
||||
import javax.inject.Inject |
||||
import javax.inject.Singleton |
@ -1,10 +1,10 @@ |
||||
package dev.openrs2.archive.key |
||||
package org.openrs2.archive.key |
||||
|
||||
import dev.openrs2.buffer.use |
||||
import dev.openrs2.cache.Js5Compression |
||||
import dev.openrs2.crypto.XteaKey |
||||
import dev.openrs2.db.Database |
||||
import io.netty.buffer.Unpooled |
||||
import org.openrs2.buffer.use |
||||
import org.openrs2.cache.Js5Compression |
||||
import org.openrs2.crypto.XteaKey |
||||
import org.openrs2.db.Database |
||||
import java.sql.Connection |
||||
import java.sql.Types |
||||
import javax.inject.Inject |
@ -1,4 +1,4 @@ |
||||
package dev.openrs2.archive.key |
||||
package org.openrs2.archive.key |
||||
|
||||
import com.github.ajalt.clikt.core.NoOpCliktCommand |
||||
import com.github.ajalt.clikt.core.subcommands |
@ -1,7 +1,7 @@ |
||||
package dev.openrs2.archive.key |
||||
package org.openrs2.archive.key |
||||
|
||||
import dev.openrs2.crypto.XteaKey |
||||
import dev.openrs2.db.Database |
||||
import org.openrs2.crypto.XteaKey |
||||
import org.openrs2.db.Database |
||||
import java.nio.file.Files |
||||
import java.nio.file.Path |
||||
import javax.inject.Inject |
@ -1,6 +1,6 @@ |
||||
package dev.openrs2.archive.key |
||||
package org.openrs2.archive.key |
||||
|
||||
import dev.openrs2.crypto.XteaKey |
||||
import org.openrs2.crypto.XteaKey |
||||
import java.io.InputStream |
||||
|
||||
public interface KeyReader { |
@ -1,6 +1,6 @@ |
||||
package dev.openrs2.archive.key |
||||
package org.openrs2.archive.key |
||||
|
||||
import dev.openrs2.crypto.XteaKey |
||||
import org.openrs2.crypto.XteaKey |
||||
import java.io.InputStream |
||||
|
||||
public object TextKeyReader : KeyReader { |
@ -1,9 +1,9 @@ |
||||
package dev.openrs2.archive.name |
||||
package org.openrs2.archive.name |
||||
|
||||
import com.github.ajalt.clikt.core.CliktCommand |
||||
import com.google.inject.Guice |
||||
import dev.openrs2.archive.ArchiveModule |
||||
import kotlinx.coroutines.runBlocking |
||||
import org.openrs2.archive.ArchiveModule |
||||
|
||||
public class GenerateCommand : CliktCommand(name = "generate") { |
||||
override fun run(): Unit = runBlocking { |
@ -1,12 +1,12 @@ |
||||
package dev.openrs2.archive.name |
||||
package org.openrs2.archive.name |
||||
|
||||
import com.github.ajalt.clikt.core.CliktCommand |
||||
import com.github.ajalt.clikt.parameters.options.option |
||||
import com.github.ajalt.clikt.parameters.types.defaultStdin |
||||
import com.github.ajalt.clikt.parameters.types.inputStream |
||||
import com.google.inject.Guice |
||||
import dev.openrs2.archive.ArchiveModule |
||||
import kotlinx.coroutines.runBlocking |
||||
import org.openrs2.archive.ArchiveModule |
||||
|
||||
public class ImportCommand : CliktCommand(name = "import") { |
||||
private val input by option().inputStream().defaultStdin() |
@ -1,4 +1,4 @@ |
||||
package dev.openrs2.archive.name |
||||
package org.openrs2.archive.name |
||||
|
||||
import com.github.ajalt.clikt.core.NoOpCliktCommand |
||||
import com.github.ajalt.clikt.core.subcommands |
@ -1,7 +1,7 @@ |
||||
package dev.openrs2.archive.name |
||||
package org.openrs2.archive.name |
||||
|
||||
import dev.openrs2.db.Database |
||||
import dev.openrs2.util.krHashCode |
||||
import org.openrs2.db.Database |
||||
import org.openrs2.util.krHashCode |
||||
import javax.inject.Inject |
||||
import javax.inject.Singleton |
||||
|
@ -1,4 +1,4 @@ |
||||
package dev.openrs2.asm |
||||
package org.openrs2.asm |
||||
|
||||
import com.fasterxml.jackson.databind.module.SimpleModule |
||||
import javax.inject.Singleton |
@ -1,4 +1,4 @@ |
||||
package dev.openrs2.asm |
||||
package org.openrs2.asm |
||||
|
||||
import com.fasterxml.jackson.databind.Module |
||||
import com.google.inject.AbstractModule |
@ -1,4 +1,4 @@ |
||||
package dev.openrs2.asm |
||||
package org.openrs2.asm |
||||
|
||||
import org.objectweb.asm.commons.Remapper |
||||
import org.objectweb.asm.tree.AbstractInsnNode |
@ -1,4 +1,4 @@ |
||||
package dev.openrs2.asm |
||||
package org.openrs2.asm |
||||
|
||||
public fun String.toBinaryClassName(): String { |
||||
return replace('/', '.') |
@ -1,4 +1,4 @@ |
||||
package dev.openrs2.asm |
||||
package org.openrs2.asm |
||||
|
||||
public object ClassVersionUtils { |
||||
private fun swapWords(v: Int): Int { |
@ -1,4 +1,4 @@ |
||||
package dev.openrs2.asm |
||||
package org.openrs2.asm |
||||
|
||||
import org.objectweb.asm.tree.AbstractInsnNode |
||||
import org.objectweb.asm.tree.InsnList |
@ -1,4 +1,4 @@ |
||||
package dev.openrs2.asm |
||||
package org.openrs2.asm |
||||
|
||||
import org.objectweb.asm.Opcodes |
||||
import org.objectweb.asm.tree.AbstractInsnNode |
@ -1,4 +1,4 @@ |
||||
package dev.openrs2.asm |
||||
package org.openrs2.asm |
||||
|
||||
import org.objectweb.asm.Opcodes |
||||
import org.objectweb.asm.tree.AbstractInsnNode |
@ -1,4 +1,4 @@ |
||||
package dev.openrs2.asm |
||||
package org.openrs2.asm |
||||
|
||||
import org.objectweb.asm.tree.FieldInsnNode |
||||
import org.objectweb.asm.tree.FieldNode |
@ -1,4 +1,4 @@ |
||||
package dev.openrs2.asm |
||||
package org.openrs2.asm |
||||
|
||||
import org.objectweb.asm.tree.ClassNode |
||||
import org.objectweb.asm.tree.FieldInsnNode |
@ -1,4 +1,4 @@ |
||||
package dev.openrs2.asm |
||||
package org.openrs2.asm |
||||
|
||||
import com.fasterxml.jackson.core.JsonParser |
||||
import com.fasterxml.jackson.databind.DeserializationContext |
@ -1,4 +1,4 @@ |
||||
package dev.openrs2.asm |
||||
package org.openrs2.asm |
||||
|
||||
import com.fasterxml.jackson.databind.DeserializationContext |
||||
import com.fasterxml.jackson.databind.KeyDeserializer |
@ -1,4 +1,4 @@ |
||||
package dev.openrs2.asm |
||||
package org.openrs2.asm |
||||
|
||||
import org.objectweb.asm.Opcodes |
||||
import org.objectweb.asm.Type |
@ -1,4 +1,4 @@ |
||||
package dev.openrs2.asm |
||||
package org.openrs2.asm |
||||
|
||||
import org.objectweb.asm.ClassVisitor |
||||
import org.objectweb.asm.Opcodes |
@ -1,4 +1,4 @@ |
||||
package dev.openrs2.asm |
||||
package org.openrs2.asm |
||||
|
||||
import org.objectweb.asm.Opcodes |
||||
import org.objectweb.asm.Type |
@ -1,8 +1,8 @@ |
||||
package dev.openrs2.asm.classpath |
||||
package org.openrs2.asm.classpath |
||||
|
||||
import dev.openrs2.asm.MemberDesc |
||||
import org.objectweb.asm.Opcodes |
||||
import org.objectweb.asm.tree.ClassNode |
||||
import org.openrs2.asm.MemberDesc |
||||
|
||||
public class AsmClassMetadata( |
||||
private val classPath: ClassPath, |
@ -1,6 +1,6 @@ |
||||
package dev.openrs2.asm.classpath |
||||
package org.openrs2.asm.classpath |
||||
|
||||
import dev.openrs2.asm.MemberDesc |
||||
import org.openrs2.asm.MemberDesc |
||||
|
||||
public abstract class ClassMetadata { |
||||
public abstract val name: String |
@ -1,13 +1,13 @@ |
||||
package dev.openrs2.asm.classpath |
||||
package org.openrs2.asm.classpath |
||||
|
||||
import dev.openrs2.asm.MemberDesc |
||||
import dev.openrs2.asm.MemberRef |
||||
import dev.openrs2.asm.toBinaryClassName |
||||
import dev.openrs2.util.collect.DisjointSet |
||||
import dev.openrs2.util.collect.ForestDisjointSet |
||||
import org.objectweb.asm.Opcodes |
||||
import org.objectweb.asm.tree.AbstractInsnNode |
||||
import org.objectweb.asm.tree.ClassNode |
||||
import org.openrs2.asm.MemberDesc |
||||
import org.openrs2.asm.MemberRef |
||||
import org.openrs2.asm.toBinaryClassName |
||||
import org.openrs2.util.collect.DisjointSet |
||||
import org.openrs2.util.collect.ForestDisjointSet |
||||
import java.util.IdentityHashMap |
||||
|
||||
public class ClassPath( |
@ -1,4 +1,4 @@ |
||||
package dev.openrs2.asm.classpath |
||||
package org.openrs2.asm.classpath |
||||
|
||||
import org.objectweb.asm.commons.Remapper |
||||
import org.objectweb.asm.tree.AbstractInsnNode |
@ -1,4 +1,4 @@ |
||||
package dev.openrs2.asm.classpath |
||||
package org.openrs2.asm.classpath |
||||
|
||||
import org.objectweb.asm.ClassVisitor |
||||
import org.objectweb.asm.MethodVisitor |
@ -1,10 +1,10 @@ |
||||
package dev.openrs2.asm.classpath |
||||
package org.openrs2.asm.classpath |
||||
|
||||
import com.github.michaelbull.logging.InlineLogger |
||||
import dev.openrs2.asm.io.LibraryReader |
||||
import dev.openrs2.asm.io.LibraryWriter |
||||
import dev.openrs2.util.io.useAtomicOutputStream |
||||
import org.objectweb.asm.tree.ClassNode |
||||
import org.openrs2.asm.io.LibraryReader |
||||
import org.openrs2.asm.io.LibraryWriter |
||||
import org.openrs2.util.io.useAtomicOutputStream |
||||
import java.nio.file.Files |
||||
import java.nio.file.Path |
||||
import java.util.SortedMap |
@ -1,8 +1,8 @@ |
||||
package dev.openrs2.asm.classpath |
||||
package org.openrs2.asm.classpath |
||||
|
||||
import dev.openrs2.asm.MemberDesc |
||||
import dev.openrs2.asm.toInternalClassName |
||||
import org.objectweb.asm.Type |
||||
import org.openrs2.asm.MemberDesc |
||||
import org.openrs2.asm.toInternalClassName |
||||
|
||||
private val Class<*>.asmName: String |
||||
get() = name.toInternalClassName() |
@ -1,4 +1,4 @@ |
||||
package dev.openrs2.asm.classpath |
||||
package org.openrs2.asm.classpath |
||||
|
||||
import org.objectweb.asm.ClassWriter |
||||
|
@ -1,4 +1,4 @@ |
||||
package dev.openrs2.asm.filter |
||||
package org.openrs2.asm.filter |
||||
|
||||
public object AnyClassFilter : ClassFilter { |
||||
override fun matches(name: String): Boolean { |
@ -1,4 +1,4 @@ |
||||
package dev.openrs2.asm.filter |
||||
package org.openrs2.asm.filter |
||||
|
||||
public object AnyMemberFilter : MemberFilter { |
||||
override fun matches(owner: String, name: String, desc: String): Boolean { |
@ -1,4 +1,4 @@ |
||||
package dev.openrs2.asm.filter |
||||
package org.openrs2.asm.filter |
||||
|
||||
public interface ClassFilter { |
||||
public fun matches(name: String): Boolean |
@ -1,4 +1,4 @@ |
||||
package dev.openrs2.asm.filter |
||||
package org.openrs2.asm.filter |
||||
|
||||
public object Glob { |
||||
public fun compile(pattern: String): Regex { |
@ -1,4 +1,4 @@ |
||||
package dev.openrs2.asm.filter |
||||
package org.openrs2.asm.filter |
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore |
||||
|
@ -1,7 +1,7 @@ |
||||
package dev.openrs2.asm.filter |
||||
package org.openrs2.asm.filter |
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore |
||||
import dev.openrs2.asm.MemberRef |
||||
import org.openrs2.asm.MemberRef |
||||
|
||||
public class GlobMemberFilter(@Suppress("CanBeParameter") private val patterns: List<MemberRef>) : MemberFilter { |
||||
private data class CompiledPattern(val owner: Regex, val name: Regex, val desc: Regex) |
@ -1,6 +1,6 @@ |
||||
package dev.openrs2.asm.filter |
||||
package org.openrs2.asm.filter |
||||
|
||||
import dev.openrs2.asm.MemberRef |
||||
import org.openrs2.asm.MemberRef |
||||
|
||||
public interface MemberFilter { |
||||
public fun matches(owner: String, name: String, desc: String): Boolean |
@ -1,4 +1,4 @@ |
||||
package dev.openrs2.asm.filter |
||||
package org.openrs2.asm.filter |
||||
|
||||
public class UnionClassFilter(vararg filters: ClassFilter) : ClassFilter { |
||||
private val filters = filters.toList() |
@ -1,4 +1,4 @@ |
||||
package dev.openrs2.asm.filter |
||||
package org.openrs2.asm.filter |
||||
|
||||
public class UnionMemberFilter(vararg filters: MemberFilter) : MemberFilter { |
||||
private val filters = filters.toList() |
@ -1,13 +1,13 @@ |
||||
package dev.openrs2.asm.io |
||||
package org.openrs2.asm.io |
||||
|
||||
import dev.openrs2.asm.ClassVersionUtils |
||||
import dev.openrs2.asm.NopClassVisitor |
||||
import dev.openrs2.asm.classpath.ClassPath |
||||
import dev.openrs2.asm.classpath.StackFrameClassWriter |
||||
import org.objectweb.asm.ClassWriter |
||||
import org.objectweb.asm.Opcodes |
||||
import org.objectweb.asm.tree.ClassNode |
||||
import org.objectweb.asm.util.CheckClassAdapter |
||||
import org.openrs2.asm.ClassVersionUtils |
||||
import org.openrs2.asm.NopClassVisitor |
||||
import org.openrs2.asm.classpath.ClassPath |
||||
import org.openrs2.asm.classpath.StackFrameClassWriter |
||||
import java.io.OutputStream |
||||
import java.util.jar.JarEntry |
||||
import java.util.jar.JarOutputStream |
@ -1,9 +1,9 @@ |
||||
package dev.openrs2.asm.io |
||||
package org.openrs2.asm.io |
||||
|
||||
import dev.openrs2.asm.classpath.JsrInliner |
||||
import dev.openrs2.util.io.entries |
||||
import org.objectweb.asm.ClassReader |
||||
import org.objectweb.asm.tree.ClassNode |
||||
import org.openrs2.asm.classpath.JsrInliner |
||||
import org.openrs2.util.io.entries |
||||
import java.io.InputStream |
||||
import java.util.jar.JarInputStream |
||||
|
@ -1,6 +1,6 @@ |
||||
package dev.openrs2.asm.io |
||||
package org.openrs2.asm.io |
||||
|
||||
import dev.openrs2.util.io.DeterministicJarOutputStream |
||||
import org.openrs2.util.io.DeterministicJarOutputStream |
||||
import java.io.OutputStream |
||||
import java.util.jar.JarOutputStream |
||||
|
@ -1,4 +1,4 @@ |
||||
package dev.openrs2.asm.io |
||||
package org.openrs2.asm.io |
||||
|
||||
import org.objectweb.asm.tree.ClassNode |
||||
import java.io.InputStream |
@ -1,7 +1,7 @@ |
||||
package dev.openrs2.asm.io |
||||
package org.openrs2.asm.io |
||||
|
||||
import dev.openrs2.asm.classpath.ClassPath |
||||
import org.objectweb.asm.tree.ClassNode |
||||
import org.openrs2.asm.classpath.ClassPath |
||||
import java.io.OutputStream |
||||
|
||||
public interface LibraryWriter { |
@ -1,6 +1,6 @@ |
||||
package dev.openrs2.asm.io |
||||
package org.openrs2.asm.io |
||||
|
||||
import dev.openrs2.util.io.DeterministicJarOutputStream |
||||
import org.openrs2.util.io.DeterministicJarOutputStream |
||||
import java.io.OutputStream |
||||
import java.util.jar.JarOutputStream |
||||
import java.util.jar.Manifest |
@ -1,7 +1,7 @@ |
||||
package dev.openrs2.asm.io |
||||
package org.openrs2.asm.io |
||||
|
||||
import dev.openrs2.compress.gzip.Gzip |
||||
import org.objectweb.asm.tree.ClassNode |
||||
import org.openrs2.compress.gzip.Gzip |
||||
import java.io.ByteArrayInputStream |
||||
import java.io.ByteArrayOutputStream |
||||
import java.io.InputStream |
@ -1,8 +1,8 @@ |
||||
package dev.openrs2.asm.io |
||||
package org.openrs2.asm.io |
||||
|
||||
import dev.openrs2.asm.classpath.ClassPath |
||||
import dev.openrs2.compress.gzip.Gzip |
||||
import org.objectweb.asm.tree.ClassNode |
||||
import org.openrs2.asm.classpath.ClassPath |
||||
import org.openrs2.compress.gzip.Gzip |
||||
import java.io.ByteArrayInputStream |
||||
import java.io.ByteArrayOutputStream |
||||
import java.io.OutputStream |
@ -1,4 +1,4 @@ |
||||
package dev.openrs2.asm.io |
||||
package org.openrs2.asm.io |
||||
|
||||
import org.objectweb.asm.tree.ClassNode |
||||
import java.io.InputStream |
@ -1,7 +1,7 @@ |
||||
package dev.openrs2.asm.io |
||||
package org.openrs2.asm.io |
||||
|
||||
import dev.openrs2.asm.classpath.ClassPath |
||||
import org.objectweb.asm.tree.ClassNode |
||||
import org.openrs2.asm.classpath.ClassPath |
||||
import java.io.OutputStream |
||||
|
||||
public object PackClassLibraryWriter : LibraryWriter { |
@ -1,11 +1,11 @@ |
||||
package dev.openrs2.asm.io |
||||
package org.openrs2.asm.io |
||||
|
||||
import dev.openrs2.asm.classpath.ClassPath |
||||
import dev.openrs2.crypto.Pkcs12KeyStore |
||||
import dev.openrs2.util.io.DeterministicJarOutputStream |
||||
import dev.openrs2.util.io.entries |
||||
import dev.openrs2.util.io.useTempFile |
||||
import org.objectweb.asm.tree.ClassNode |
||||
import org.openrs2.asm.classpath.ClassPath |
||||
import org.openrs2.crypto.Pkcs12KeyStore |
||||
import org.openrs2.util.io.DeterministicJarOutputStream |
||||
import org.openrs2.util.io.entries |
||||
import org.openrs2.util.io.useTempFile |
||||
import java.io.ByteArrayInputStream |
||||
import java.io.ByteArrayOutputStream |
||||
import java.io.InputStream |
@ -1,11 +1,11 @@ |
||||
package dev.openrs2.asm.transform |
||||
package org.openrs2.asm.transform |
||||
|
||||
import dev.openrs2.asm.classpath.ClassPath |
||||
import dev.openrs2.asm.classpath.Library |
||||
import dev.openrs2.asm.hasCode |
||||
import org.objectweb.asm.tree.ClassNode |
||||
import org.objectweb.asm.tree.FieldNode |
||||
import org.objectweb.asm.tree.MethodNode |
||||
import org.openrs2.asm.classpath.ClassPath |
||||
import org.openrs2.asm.classpath.Library |
||||
import org.openrs2.asm.hasCode |
||||
|
||||
public abstract class Transformer { |
||||
public open fun transform(classPath: ClassPath) { |
@ -1,4 +1,4 @@ |
||||
package dev.openrs2.buffer |
||||
package org.openrs2.buffer |
||||
|
||||
import com.google.inject.AbstractModule |
||||
import io.netty.buffer.ByteBufAllocator |
@ -1,4 +1,4 @@ |
||||
package dev.openrs2.buffer |
||||
package org.openrs2.buffer |
||||
|
||||
import com.google.common.base.Preconditions |
||||
import io.netty.buffer.ByteBuf |
@ -1,4 +1,4 @@ |
||||
package dev.openrs2.buffer |
||||
package org.openrs2.buffer |
||||
|
||||
import io.netty.util.ReferenceCounted |
||||
|
@ -1,4 +1,4 @@ |
||||
package dev.openrs2.buffer |
||||
package org.openrs2.buffer |
||||
|
||||
import io.netty.buffer.ByteBufAllocator |
||||
import io.netty.buffer.Unpooled |
@ -1,4 +1,4 @@ |
||||
package dev.openrs2.bundler |
||||
package org.openrs2.bundler |
||||
|
||||
import com.github.ajalt.clikt.core.CliktCommand |
||||
import com.google.inject.Guice |
@ -1,19 +1,19 @@ |
||||
package dev.openrs2.bundler |
||||
package org.openrs2.bundler |
||||
|
||||
import com.github.michaelbull.logging.InlineLogger |
||||
import dev.openrs2.asm.classpath.ClassPath |
||||
import dev.openrs2.asm.classpath.Library |
||||
import dev.openrs2.asm.io.JarLibraryReader |
||||
import dev.openrs2.asm.io.JarLibraryWriter |
||||
import dev.openrs2.asm.io.ManifestJarLibraryWriter |
||||
import dev.openrs2.asm.io.Pack200LibraryReader |
||||
import dev.openrs2.asm.io.Pack200LibraryWriter |
||||
import dev.openrs2.asm.io.PackClassLibraryWriter |
||||
import dev.openrs2.asm.io.SignedJarLibraryWriter |
||||
import dev.openrs2.asm.transform.Transformer |
||||
import dev.openrs2.bundler.transform.ResourceTransformer |
||||
import dev.openrs2.conf.Config |
||||
import dev.openrs2.crypto.Pkcs12KeyStore |
||||
import org.openrs2.asm.classpath.ClassPath |
||||
import org.openrs2.asm.classpath.Library |
||||
import org.openrs2.asm.io.JarLibraryReader |
||||
import org.openrs2.asm.io.JarLibraryWriter |
||||
import org.openrs2.asm.io.ManifestJarLibraryWriter |
||||
import org.openrs2.asm.io.Pack200LibraryReader |
||||
import org.openrs2.asm.io.Pack200LibraryWriter |
||||
import org.openrs2.asm.io.PackClassLibraryWriter |
||||
import org.openrs2.asm.io.SignedJarLibraryWriter |
||||
import org.openrs2.asm.transform.Transformer |
||||
import org.openrs2.bundler.transform.ResourceTransformer |
||||
import org.openrs2.conf.Config |
||||
import org.openrs2.crypto.Pkcs12KeyStore |
||||
import java.nio.file.Files |
||||
import java.nio.file.Path |
||||
import java.util.jar.Attributes |
@ -1,23 +1,23 @@ |
||||
package dev.openrs2.bundler |
||||
package org.openrs2.bundler |
||||
|
||||
import com.google.inject.AbstractModule |
||||
import com.google.inject.multibindings.Multibinder |
||||
import dev.openrs2.asm.transform.Transformer |
||||
import dev.openrs2.bundler.transform.BufferSizeTransformer |
||||
import dev.openrs2.bundler.transform.CachePathTransformer |
||||
import dev.openrs2.bundler.transform.DomainTransformer |
||||
import dev.openrs2.bundler.transform.HighDpiTransformer |
||||
import dev.openrs2.bundler.transform.HostCheckTransformer |
||||
import dev.openrs2.bundler.transform.LoadLibraryTransformer |
||||
import dev.openrs2.bundler.transform.MacResizeTransformer |
||||
import dev.openrs2.bundler.transform.MemoryAllocationTransformer |
||||
import dev.openrs2.bundler.transform.NameTransformer |
||||
import dev.openrs2.bundler.transform.PlatformDetectionTransformer |
||||
import dev.openrs2.bundler.transform.PublicKeyTransformer |
||||
import dev.openrs2.bundler.transform.RightClickTransformer |
||||
import dev.openrs2.bundler.transform.TypoTransformer |
||||
import dev.openrs2.conf.ConfigModule |
||||
import dev.openrs2.crypto.CryptoModule |
||||
import org.openrs2.asm.transform.Transformer |
||||
import org.openrs2.bundler.transform.BufferSizeTransformer |
||||
import org.openrs2.bundler.transform.CachePathTransformer |
||||
import org.openrs2.bundler.transform.DomainTransformer |
||||
import org.openrs2.bundler.transform.HighDpiTransformer |
||||
import org.openrs2.bundler.transform.HostCheckTransformer |
||||
import org.openrs2.bundler.transform.LoadLibraryTransformer |
||||
import org.openrs2.bundler.transform.MacResizeTransformer |
||||
import org.openrs2.bundler.transform.MemoryAllocationTransformer |
||||
import org.openrs2.bundler.transform.NameTransformer |
||||
import org.openrs2.bundler.transform.PlatformDetectionTransformer |
||||
import org.openrs2.bundler.transform.PublicKeyTransformer |
||||
import org.openrs2.bundler.transform.RightClickTransformer |
||||
import org.openrs2.bundler.transform.TypoTransformer |
||||
import org.openrs2.conf.ConfigModule |
||||
import org.openrs2.crypto.CryptoModule |
||||
|
||||
public object BundlerModule : AbstractModule() { |
||||
override fun configure() { |
@ -1,4 +1,4 @@ |
||||
package dev.openrs2.bundler |
||||
package org.openrs2.bundler |
||||
|
||||
import javax.inject.Qualifier |
||||
|
@ -1,17 +1,17 @@ |
||||
package dev.openrs2.bundler.transform |
||||
package org.openrs2.bundler.transform |
||||
|
||||
import com.github.michaelbull.logging.InlineLogger |
||||
import dev.openrs2.asm.InsnMatcher |
||||
import dev.openrs2.asm.MemberRef |
||||
import dev.openrs2.asm.classpath.ClassPath |
||||
import dev.openrs2.asm.classpath.Library |
||||
import dev.openrs2.asm.hasCode |
||||
import dev.openrs2.asm.toAbstractInsnNode |
||||
import dev.openrs2.asm.transform.Transformer |
||||
import org.objectweb.asm.tree.ClassNode |
||||
import org.objectweb.asm.tree.FieldInsnNode |
||||
import org.objectweb.asm.tree.LdcInsnNode |
||||
import org.objectweb.asm.tree.MethodNode |
||||
import org.openrs2.asm.InsnMatcher |
||||
import org.openrs2.asm.MemberRef |
||||
import org.openrs2.asm.classpath.ClassPath |
||||
import org.openrs2.asm.classpath.Library |
||||
import org.openrs2.asm.hasCode |
||||
import org.openrs2.asm.toAbstractInsnNode |
||||
import org.openrs2.asm.transform.Transformer |
||||
import javax.inject.Singleton |
||||
|
||||
@Singleton |
@ -1,13 +1,13 @@ |
||||
package dev.openrs2.bundler.transform |
||||
package org.openrs2.bundler.transform |
||||
|
||||
import com.github.michaelbull.logging.InlineLogger |
||||
import dev.openrs2.asm.classpath.ClassPath |
||||
import dev.openrs2.asm.classpath.Library |
||||
import dev.openrs2.asm.transform.Transformer |
||||
import dev.openrs2.conf.Config |
||||
import org.objectweb.asm.tree.ClassNode |
||||
import org.objectweb.asm.tree.LdcInsnNode |
||||
import org.objectweb.asm.tree.MethodNode |
||||
import org.openrs2.asm.classpath.ClassPath |
||||
import org.openrs2.asm.classpath.Library |
||||
import org.openrs2.asm.transform.Transformer |
||||
import org.openrs2.conf.Config |
||||
import javax.inject.Inject |
||||
import javax.inject.Singleton |
||||
|
@ -1,13 +1,13 @@ |
||||
package dev.openrs2.bundler.transform |
||||
package org.openrs2.bundler.transform |
||||
|
||||
import com.github.michaelbull.logging.InlineLogger |
||||
import dev.openrs2.asm.classpath.ClassPath |
||||
import dev.openrs2.asm.classpath.Library |
||||
import dev.openrs2.asm.transform.Transformer |
||||
import dev.openrs2.conf.Config |
||||
import org.objectweb.asm.tree.ClassNode |
||||
import org.objectweb.asm.tree.LdcInsnNode |
||||
import org.objectweb.asm.tree.MethodNode |
||||
import org.openrs2.asm.classpath.ClassPath |
||||
import org.openrs2.asm.classpath.Library |
||||
import org.openrs2.asm.transform.Transformer |
||||
import org.openrs2.conf.Config |
||||
import javax.inject.Inject |
||||
import javax.inject.Singleton |
||||
|
@ -1,16 +1,16 @@ |
||||
package dev.openrs2.bundler.transform |
||||
package org.openrs2.bundler.transform |
||||
|
||||
import com.github.michaelbull.logging.InlineLogger |
||||
import dev.openrs2.asm.InsnMatcher |
||||
import dev.openrs2.asm.classpath.ClassPath |
||||
import dev.openrs2.asm.classpath.Library |
||||
import dev.openrs2.asm.transform.Transformer |
||||
import org.objectweb.asm.Opcodes |
||||
import org.objectweb.asm.Type |
||||
import org.objectweb.asm.tree.ClassNode |
||||
import org.objectweb.asm.tree.InsnNode |
||||
import org.objectweb.asm.tree.MethodInsnNode |
||||
import org.objectweb.asm.tree.MethodNode |
||||
import org.openrs2.asm.InsnMatcher |
||||
import org.openrs2.asm.classpath.ClassPath |
||||
import org.openrs2.asm.classpath.Library |
||||
import org.openrs2.asm.transform.Transformer |
||||
import javax.inject.Singleton |
||||
|
||||
@Singleton |
@ -1,15 +1,15 @@ |
||||
package dev.openrs2.bundler.transform |
||||
package org.openrs2.bundler.transform |
||||
|
||||
import com.github.michaelbull.logging.InlineLogger |
||||
import dev.openrs2.asm.InsnMatcher |
||||
import dev.openrs2.asm.classpath.ClassPath |
||||
import dev.openrs2.asm.classpath.Library |
||||
import dev.openrs2.asm.transform.Transformer |
||||
import org.objectweb.asm.Opcodes |
||||
import org.objectweb.asm.tree.ClassNode |
||||
import org.objectweb.asm.tree.JumpInsnNode |
||||
import org.objectweb.asm.tree.LdcInsnNode |
||||
import org.objectweb.asm.tree.MethodNode |
||||
import org.openrs2.asm.InsnMatcher |
||||
import org.openrs2.asm.classpath.ClassPath |
||||
import org.openrs2.asm.classpath.Library |
||||
import org.openrs2.asm.transform.Transformer |
||||
import javax.inject.Singleton |
||||
|
||||
@Singleton |
@ -1,17 +1,17 @@ |
||||
package dev.openrs2.bundler.transform |
||||
package org.openrs2.bundler.transform |
||||
|
||||
import com.github.michaelbull.logging.InlineLogger |
||||
import dev.openrs2.asm.InsnMatcher |
||||
import dev.openrs2.asm.classpath.ClassPath |
||||
import dev.openrs2.asm.classpath.Library |
||||
import dev.openrs2.asm.replaceExpression |
||||
import dev.openrs2.asm.transform.Transformer |
||||
import org.objectweb.asm.Opcodes |
||||
import org.objectweb.asm.tree.ClassNode |
||||
import org.objectweb.asm.tree.InsnNode |
||||
import org.objectweb.asm.tree.MethodInsnNode |
||||
import org.objectweb.asm.tree.MethodNode |
||||
import org.objectweb.asm.tree.VarInsnNode |
||||
import org.openrs2.asm.InsnMatcher |
||||
import org.openrs2.asm.classpath.ClassPath |
||||
import org.openrs2.asm.classpath.Library |
||||
import org.openrs2.asm.replaceExpression |
||||
import org.openrs2.asm.transform.Transformer |
||||
import javax.inject.Singleton |
||||
|
||||
@Singleton |
@ -1,13 +1,13 @@ |
||||
package dev.openrs2.bundler.transform |
||||
package org.openrs2.bundler.transform |
||||
|
||||
import com.github.michaelbull.logging.InlineLogger |
||||
import dev.openrs2.asm.classpath.ClassPath |
||||
import dev.openrs2.asm.classpath.Library |
||||
import dev.openrs2.asm.transform.Transformer |
||||
import dev.openrs2.conf.Config |
||||
import org.objectweb.asm.tree.ClassNode |
||||
import org.objectweb.asm.tree.LdcInsnNode |
||||
import org.objectweb.asm.tree.MethodNode |
||||
import org.openrs2.asm.classpath.ClassPath |
||||
import org.openrs2.asm.classpath.Library |
||||
import org.openrs2.asm.transform.Transformer |
||||
import org.openrs2.conf.Config |
||||
import javax.inject.Inject |
||||
import javax.inject.Singleton |
||||
|
@ -1,13 +1,13 @@ |
||||
package dev.openrs2.bundler.transform |
||||
package org.openrs2.bundler.transform |
||||
|
||||
import com.github.michaelbull.logging.InlineLogger |
||||
import dev.openrs2.asm.classpath.ClassPath |
||||
import dev.openrs2.asm.classpath.Library |
||||
import dev.openrs2.asm.transform.Transformer |
||||
import org.bouncycastle.crypto.params.RSAPrivateCrtKeyParameters |
||||
import org.objectweb.asm.tree.ClassNode |
||||
import org.objectweb.asm.tree.LdcInsnNode |
||||
import org.objectweb.asm.tree.MethodNode |
||||
import org.openrs2.asm.classpath.ClassPath |
||||
import org.openrs2.asm.classpath.Library |
||||
import org.openrs2.asm.transform.Transformer |
||||
import javax.inject.Inject |
||||
import javax.inject.Singleton |
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue