mirror of
https://github.com/revanced/revanced-patches.git
synced 2025-12-11 20:03:55 +01:00
fix(YouTube Music - Hide cast button): Fix patching error
This commit is contained in:
@@ -65,7 +65,7 @@ val hideCastButton = bytecodePatch(
|
|||||||
|
|
||||||
playerOverlayChipFingerprint.method.apply {
|
playerOverlayChipFingerprint.method.apply {
|
||||||
val resourceIndex = indexOfFirstLiteralInstructionOrThrow(playerOverlayChip)
|
val resourceIndex = indexOfFirstLiteralInstructionOrThrow(playerOverlayChip)
|
||||||
val targetIndex = indexOfFirstInstructionOrThrow(resourceIndex, Opcode.MOVE_RESULT)
|
val targetIndex = indexOfFirstInstructionOrThrow(resourceIndex, Opcode.MOVE_RESULT_OBJECT)
|
||||||
val targetRegister = getInstruction<OneRegisterInstruction>(targetIndex).registerA
|
val targetRegister = getInstruction<OneRegisterInstruction>(targetIndex).registerA
|
||||||
|
|
||||||
addInstruction(
|
addInstruction(
|
||||||
|
|||||||
Reference in New Issue
Block a user