mirror of
https://github.com/revanced/revanced-patcher.git
synced 2025-05-01 21:54:24 +02:00
test: fix test with previous changes
This commit is contained in:
parent
783fbf43f2
commit
45303f66ec
@ -27,7 +27,7 @@ internal class PatcherTest {
|
|||||||
"main-method",
|
"main-method",
|
||||||
"V",
|
"V",
|
||||||
AccessFlags.PUBLIC or AccessFlags.STATIC,
|
AccessFlags.PUBLIC or AccessFlags.STATIC,
|
||||||
setOf("[L"),
|
arrayOf("[L"),
|
||||||
arrayOf(
|
arrayOf(
|
||||||
Opcode.CONST_STRING,
|
Opcode.CONST_STRING,
|
||||||
Opcode.INVOKE_VIRTUAL,
|
Opcode.INVOKE_VIRTUAL,
|
||||||
@ -51,7 +51,7 @@ internal class PatcherTest {
|
|||||||
// Get the result from the resolver cache
|
// Get the result from the resolver cache
|
||||||
val result = cache.methodMap["main-method"]
|
val result = cache.methodMap["main-method"]
|
||||||
// Get the implementation for the resolved method
|
// Get the implementation for the resolved method
|
||||||
val implementation = result.resolveAndGetMethod().implementation!!
|
val implementation = result.method().implementation!!
|
||||||
// Let's modify it, so it prints "Hello, ReVanced! Editing bytecode."
|
// Let's modify it, so it prints "Hello, ReVanced! Editing bytecode."
|
||||||
// Get the start index of our opcode pattern.
|
// Get the start index of our opcode pattern.
|
||||||
// This will be the index of the instruction with the opcode CONST_STRING.
|
// This will be the index of the instruction with the opcode CONST_STRING.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user