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.
 
 
 
 
openrs2/deob/src/main/java/dev/openrs2/deob/remap/ArgumentMappingGenerator.kt

21 lines
550 B

package dev.openrs2.deob.remap
import dev.openrs2.deob.ArgRef
import dev.openrs2.deob.util.map.NameMap
class ArgumentMappingGenerator(
private val nameMap: NameMap
) {
fun generate(): Map<ArgRef, String> {
val argumentNames = mutableMapOf<ArgRef, String>()
for ((methodRef, method) in nameMap.methods) {
for ((index, name) in method.arguments) {
val argument = ArgRef(methodRef, index)
argumentNames[argument] = name
}
}
return argumentNames
}
}