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
582 B
21 lines
582 B
package org.openrs2.deob.bytecode.remap
|
|
|
|
import org.openrs2.deob.bytecode.ArgRef
|
|
import org.openrs2.deob.util.map.NameMap
|
|
|
|
public class ArgumentMappingGenerator(
|
|
private val nameMap: NameMap
|
|
) {
|
|
public 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
|
|
}
|
|
}
|
|
|