mirror of
https://github.com/ReVanced/revanced-patcher.git
synced 2026-01-30 22:51:02 +00:00
Finish tests, add InsnList.setAt, sr -> sd
Added some sweet explanation too.
This commit is contained in:
@@ -6,7 +6,7 @@ import org.objectweb.asm.tree.MethodNode
|
||||
data class PatchData(
|
||||
val cls: ClassNode,
|
||||
val method: MethodNode,
|
||||
val sr: ScanData
|
||||
val sd: ScanData
|
||||
)
|
||||
|
||||
data class ScanData(
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
package net.revanced.patcher.writer
|
||||
|
||||
import org.objectweb.asm.tree.AbstractInsnNode
|
||||
import org.objectweb.asm.tree.InsnList
|
||||
|
||||
object ASMWriter {
|
||||
fun InsnList.testingWow() {
|
||||
|
||||
fun InsnList.setAt(index: Int, node: AbstractInsnNode) {
|
||||
this[this.get(index)] = node
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user