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.
21 lines
600 B
21 lines
600 B
package dev.openrs2.deob.remap
|
|
|
|
import dev.openrs2.asm.classpath.Library
|
|
import org.objectweb.asm.commons.Remapper
|
|
import org.objectweb.asm.commons.SimpleRemapper
|
|
|
|
object PrefixRemapper {
|
|
fun create(library: Library, prefix: String): Remapper {
|
|
val mapping = mutableMapOf<String, String>()
|
|
|
|
for (clazz in library) {
|
|
if (clazz.name in TypedRemapper.EXCLUDED_CLASSES) {
|
|
mapping[clazz.name] = clazz.name
|
|
} else {
|
|
mapping[clazz.name] = prefix + clazz.name
|
|
}
|
|
}
|
|
|
|
return SimpleRemapper(mapping)
|
|
}
|
|
}
|
|
|