mirror of
https://github.com/ReVanced/revanced-patches.git
synced 2024-11-10 01:01:56 +01:00
refactor: make patches compatible with the newest patcher
This commit is contained in:
parent
f6d07d0abd
commit
1eb85e8f4e
3 changed files with 5 additions and 5 deletions
|
@ -18,7 +18,7 @@ class VideoAds : Patch("VideoAds") {
|
|||
"show-video-ads-method",
|
||||
"V",
|
||||
AccessFlags.PUBLIC or AccessFlags.FINAL,
|
||||
arrayOf("Z"),
|
||||
listOf("Z"),
|
||||
null
|
||||
)
|
||||
) ?: return PatchResultError("Could not find required method to patch")
|
||||
|
|
|
@ -19,8 +19,8 @@ class HideSuggestions : Patch("hide-suggestions") {
|
|||
"hide-suggestions-method",
|
||||
"V",
|
||||
AccessFlags.PUBLIC or AccessFlags.FINAL,
|
||||
arrayOf("Z"),
|
||||
arrayOf(
|
||||
listOf("Z"),
|
||||
listOf(
|
||||
Opcode.IPUT_BOOLEAN,
|
||||
Opcode.IGET_OBJECT,
|
||||
Opcode.IGET_BOOLEAN,
|
||||
|
|
|
@ -19,8 +19,8 @@ class OldQualityLayout : Patch("old-quality-restore") {
|
|||
"old-quality-patch-method",
|
||||
"L",
|
||||
AccessFlags.FINAL or AccessFlags.PUBLIC,
|
||||
emptyArray(),
|
||||
arrayOf(
|
||||
emptyList(),
|
||||
listOf(
|
||||
Opcode.IGET,
|
||||
Opcode.CONST_4,
|
||||
Opcode.IF_NE,
|
||||
|
|
Loading…
Reference in a new issue