Skip to content

Commit 28799a5

Browse files
author
LisoUseInAIKyrios
committed
fix(YouTube Music - Hide cast button): Fix patching error
1 parent 1c80774 commit 28799a5

File tree

1 file changed

+1
-1
lines changed
  • patches/src/main/kotlin/app/revanced/patches/music/layout/castbutton

1 file changed

+1
-1
lines changed

patches/src/main/kotlin/app/revanced/patches/music/layout/castbutton/HideCastButton.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ val hideCastButton = bytecodePatch(
6565

6666
playerOverlayChipFingerprint.method.apply {
6767
val resourceIndex = indexOfFirstLiteralInstructionOrThrow(playerOverlayChip)
68-
val targetIndex = indexOfFirstInstructionOrThrow(resourceIndex, Opcode.MOVE_RESULT)
68+
val targetIndex = indexOfFirstInstructionOrThrow(resourceIndex, Opcode.MOVE_RESULT_OBJECT)
6969
val targetRegister = getInstruction<OneRegisterInstruction>(targetIndex).registerA
7070

7171
addInstruction(

0 commit comments

Comments
 (0)