mirror of
https://github.com/revanced/revanced-patches.git
synced 2025-04-30 06:34:28 +02:00
refactor: make patches compatible with the newest patcher
This commit is contained in:
parent
f6d07d0abd
commit
1eb85e8f4e
@ -18,7 +18,7 @@ class VideoAds : Patch("VideoAds") {
|
|||||||
"show-video-ads-method",
|
"show-video-ads-method",
|
||||||
"V",
|
"V",
|
||||||
AccessFlags.PUBLIC or AccessFlags.FINAL,
|
AccessFlags.PUBLIC or AccessFlags.FINAL,
|
||||||
arrayOf("Z"),
|
listOf("Z"),
|
||||||
null
|
null
|
||||||
)
|
)
|
||||||
) ?: return PatchResultError("Could not find required method to patch")
|
) ?: return PatchResultError("Could not find required method to patch")
|
||||||
|
@ -19,8 +19,8 @@ class HideSuggestions : Patch("hide-suggestions") {
|
|||||||
"hide-suggestions-method",
|
"hide-suggestions-method",
|
||||||
"V",
|
"V",
|
||||||
AccessFlags.PUBLIC or AccessFlags.FINAL,
|
AccessFlags.PUBLIC or AccessFlags.FINAL,
|
||||||
arrayOf("Z"),
|
listOf("Z"),
|
||||||
arrayOf(
|
listOf(
|
||||||
Opcode.IPUT_BOOLEAN,
|
Opcode.IPUT_BOOLEAN,
|
||||||
Opcode.IGET_OBJECT,
|
Opcode.IGET_OBJECT,
|
||||||
Opcode.IGET_BOOLEAN,
|
Opcode.IGET_BOOLEAN,
|
||||||
|
@ -19,8 +19,8 @@ class OldQualityLayout : Patch("old-quality-restore") {
|
|||||||
"old-quality-patch-method",
|
"old-quality-patch-method",
|
||||||
"L",
|
"L",
|
||||||
AccessFlags.FINAL or AccessFlags.PUBLIC,
|
AccessFlags.FINAL or AccessFlags.PUBLIC,
|
||||||
emptyArray(),
|
emptyList(),
|
||||||
arrayOf(
|
listOf(
|
||||||
Opcode.IGET,
|
Opcode.IGET,
|
||||||
Opcode.CONST_4,
|
Opcode.CONST_4,
|
||||||
Opcode.IF_NE,
|
Opcode.IF_NE,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user