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.
28 lines
743 B
28 lines
743 B
package org.openrs2.deob.bytecode.transform
|
|
|
|
import jakarta.inject.Singleton
|
|
import org.objectweb.asm.Opcodes
|
|
import org.objectweb.asm.tree.ClassNode
|
|
import org.openrs2.asm.classpath.ClassPath
|
|
import org.openrs2.asm.classpath.Library
|
|
import org.openrs2.asm.transform.Transformer
|
|
|
|
@Singleton
|
|
public class CanvasTransformer : Transformer() {
|
|
override fun transformClass(
|
|
classPath: ClassPath,
|
|
library: Library,
|
|
clazz: ClassNode
|
|
): Boolean {
|
|
if (clazz.superName != "java/awt/Canvas") {
|
|
return false
|
|
}
|
|
|
|
if (clazz.access and Opcodes.ACC_FINAL == 0) {
|
|
return false
|
|
}
|
|
|
|
clazz.interfaces.remove("java/awt/event/FocusListener")
|
|
return false
|
|
}
|
|
}
|
|
|