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.
22 lines
622 B
22 lines
622 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 {
|
|
@JvmStatic
|
|
fun create(library: Library, prefix: String): Remapper {
|
|
val mapping = mutableMapOf<String, String>()
|
|
|
|
for (clazz in library) {
|
|
if (TypedRemapper.EXCLUDED_CLASSES.contains(clazz.name)) {
|
|
mapping[clazz.name] = clazz.name
|
|
} else {
|
|
mapping[clazz.name] = prefix + clazz.name
|
|
}
|
|
}
|
|
|
|
return SimpleRemapper(mapping)
|
|
}
|
|
}
|
|
|