fix(YouTube Music - Hide cast button): Fix patching error

This commit is contained in:
LisoUseInAIKyrios
2025-09-27 16:31:22 +04:00
parent 1c80774d79
commit 28799a548a

View File

@@ -65,7 +65,7 @@ val hideCastButton = bytecodePatch(
playerOverlayChipFingerprint.method.apply {
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
addInstruction(