Open-source multiplayer game server compatible with the RuneScape client
https://www.openrs2.org/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
616 B
19 lines
616 B
package org.openrs2.deob.bytecode.transform
|
|
|
|
import jakarta.inject.Inject
|
|
import jakarta.inject.Singleton
|
|
import org.openrs2.asm.classpath.ClassPath
|
|
import org.openrs2.asm.transform.Transformer
|
|
import org.openrs2.deob.bytecode.Profile
|
|
import org.openrs2.deob.bytecode.remap.TypedRemapper
|
|
import org.openrs2.deob.util.map.NameMap
|
|
|
|
@Singleton
|
|
public class RemapTransformer @Inject constructor(
|
|
private val profile: Profile,
|
|
private val nameMap: NameMap
|
|
) : Transformer() {
|
|
override fun preTransform(classPath: ClassPath) {
|
|
classPath.remap(TypedRemapper.create(classPath, profile, nameMap))
|
|
}
|
|
}
|
|
|