Skip to content

Commit

Permalink
feat(VSCO - Unlock pro): Constrain to last working version
Browse files Browse the repository at this point in the history
  • Loading branch information
oSumAtrIX committed Feb 25, 2024
1 parent ebae8cf commit 6dd4a7c
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
package app.revanced.patches.vsco.misc.pro

import app.revanced.util.exception
import app.revanced.patcher.data.BytecodeContext
import app.revanced.patcher.extensions.InstructionExtensions.addInstruction
import app.revanced.patcher.patch.BytecodePatch
import app.revanced.patcher.patch.annotation.CompatiblePackage
import app.revanced.patcher.patch.annotation.Patch
import app.revanced.patches.vsco.misc.pro.fingerprints.RevCatSubscriptionFingerprint
import app.revanced.util.exception

@Patch(
name = "Unlock pro",
description = "Unlocks pro features.",
compatiblePackages = [CompatiblePackage("com.vsco.cam")]
compatiblePackages = [CompatiblePackage("com.vsco.cam", ["345"])],
)
object UnlockProPatch : BytecodePatch(
setOf(RevCatSubscriptionFingerprint)
setOf(RevCatSubscriptionFingerprint),
) {
override fun execute(context: BytecodeContext) {
RevCatSubscriptionFingerprint.result?.mutableMethod?.apply {
Expand All @@ -23,7 +23,7 @@ object UnlockProPatch : BytecodePatch(
0,
"""
const p1, 0x1
"""
""",
)
} ?: throw RevCatSubscriptionFingerprint.exception
}
Expand Down

0 comments on commit 6dd4a7c

Please sign in to comment.