Skip to content

Commit 0f7ed84

Browse files
committed
feat(VSCO - Unlock pro): Constrain to last working version
1 parent d33d7d8 commit 0f7ed84

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/kotlin/app/revanced/patches/vsco/misc/pro/UnlockProPatch.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
package app.revanced.patches.vsco.misc.pro
22

3-
import app.revanced.util.exception
43
import app.revanced.patcher.data.BytecodeContext
54
import app.revanced.patcher.extensions.InstructionExtensions.addInstruction
65
import app.revanced.patcher.patch.BytecodePatch
76
import app.revanced.patcher.patch.annotation.CompatiblePackage
87
import app.revanced.patcher.patch.annotation.Patch
98
import app.revanced.patches.vsco.misc.pro.fingerprints.RevCatSubscriptionFingerprint
9+
import app.revanced.util.exception
1010

1111
@Patch(
1212
name = "Unlock pro",
1313
description = "Unlocks pro features.",
14-
compatiblePackages = [CompatiblePackage("com.vsco.cam")]
14+
compatiblePackages = [CompatiblePackage("com.vsco.cam", ["345"])],
1515
)
1616
object UnlockProPatch : BytecodePatch(
17-
setOf(RevCatSubscriptionFingerprint)
17+
setOf(RevCatSubscriptionFingerprint),
1818
) {
1919
override fun execute(context: BytecodeContext) {
2020
RevCatSubscriptionFingerprint.result?.mutableMethod?.apply {
@@ -23,7 +23,7 @@ object UnlockProPatch : BytecodePatch(
2323
0,
2424
"""
2525
const p1, 0x1
26-
"""
26+
""",
2727
)
2828
} ?: throw RevCatSubscriptionFingerprint.exception
2929
}

0 commit comments

Comments
 (0)