mirror of
https://github.com/revanced/revanced-patches.git
synced 2025-12-12 04:13:57 +01:00
fix: exclusive-audio-playback patch (#153)
This commit is contained in:
@@ -26,9 +26,7 @@ class ExclusiveAudioPatch : BytecodePatch(
|
|||||||
)
|
)
|
||||||
) {
|
) {
|
||||||
override fun execute(data: BytecodeData): PatchResult {
|
override fun execute(data: BytecodeData): PatchResult {
|
||||||
ExclusiveAudioFingerprint.resolve(data, AudioOnlyEnablerFingerprint.result!!.classDef)
|
val method = AudioOnlyEnablerFingerprint.result!!.mutableMethod
|
||||||
|
|
||||||
val method = ExclusiveAudioFingerprint.result!!.mutableMethod
|
|
||||||
method.replaceInstruction(method.implementation!!.instructions.count() - 1, "const/4 v0, 0x1")
|
method.replaceInstruction(method.implementation!!.instructions.count() - 1, "const/4 v0, 0x1")
|
||||||
method.addInstruction("return v0")
|
method.addInstruction("return v0")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user