mirror of
https://github.com/revanced/revanced-patches
synced 2024-11-07 08:16:59 +01:00
fix: exclusive-audio-playback
patch (#153)
This commit is contained in:
parent
d7ef58f66e
commit
9beff9567f
@ -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")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user