mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-05-09 02:54:37 +02:00
fix(YouTube): Ambient mode control
patch does not work correctly on certain versions
This commit is contained in:
parent
6454d7a2b4
commit
0f1473ab80
@ -61,7 +61,8 @@ object AmbientModeSwitchPatch : BaseBytecodePatch(
|
||||
context.findClass(className)?.mutableClass?.methods?.first { method ->
|
||||
method.name == "accept"
|
||||
}?.apply {
|
||||
for ((index, instruction) in implementation!!.instructions.withIndex()) {
|
||||
for (index in implementation!!.instructions.size - 1 downTo 0) {
|
||||
val instruction = getInstruction(index)
|
||||
if (instruction.opcode != Opcode.INVOKE_VIRTUAL)
|
||||
continue
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user