mirror of
https://github.com/ReVanced/revanced-patches.git
synced 2024-11-10 01:01:56 +01:00
feat(citra): remove patches (#2384)
Citra is an open-source project and is available at https://github.com/citra-emu/citra therefore does not need any patches
This commit is contained in:
parent
6ee836c587
commit
d1823297ce
3 changed files with 0 additions and 53 deletions
|
@ -1,7 +0,0 @@
|
||||||
package app.revanced.patches.citra.misc.premium.annotations
|
|
||||||
|
|
||||||
import app.revanced.patcher.annotation.Compatibility
|
|
||||||
import app.revanced.patcher.annotation.Package
|
|
||||||
|
|
||||||
@Compatibility([Package("org.citra.citra_emu"), Package("org.citra.citra_emu.canary")])
|
|
||||||
internal annotation class PremiumUnlockCompatbility
|
|
|
@ -1,9 +0,0 @@
|
||||||
package app.revanced.patches.citra.misc.premium.fingerprints
|
|
||||||
|
|
||||||
import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint
|
|
||||||
|
|
||||||
object PremiumUnlockFingerprint : MethodFingerprint(
|
|
||||||
customFingerprint = { methodDef, _ ->
|
|
||||||
methodDef.definingClass == "Lorg/citra/citra_emu/ui/main/MainActivity;" && methodDef.name == "isPremiumActive"
|
|
||||||
}
|
|
||||||
)
|
|
|
@ -1,37 +0,0 @@
|
||||||
package app.revanced.patches.citra.misc.premium.patch
|
|
||||||
|
|
||||||
import app.revanced.patcher.annotation.Description
|
|
||||||
import app.revanced.patcher.annotation.Name
|
|
||||||
import app.revanced.patcher.annotation.Version
|
|
||||||
import app.revanced.patcher.data.BytecodeContext
|
|
||||||
import app.revanced.patcher.extensions.MethodFingerprintExtensions.name
|
|
||||||
import app.revanced.patcher.extensions.InstructionExtensions.addInstructions
|
|
||||||
import app.revanced.patcher.patch.BytecodePatch
|
|
||||||
import app.revanced.patcher.patch.PatchResult
|
|
||||||
import app.revanced.patcher.patch.PatchResultError
|
|
||||||
import app.revanced.patcher.patch.PatchResultSuccess
|
|
||||||
import app.revanced.patcher.patch.annotations.Patch
|
|
||||||
import app.revanced.patches.citra.misc.premium.annotations.PremiumUnlockCompatbility
|
|
||||||
import app.revanced.patches.citra.misc.premium.fingerprints.PremiumUnlockFingerprint
|
|
||||||
|
|
||||||
@Patch
|
|
||||||
@Name("premium-unlock")
|
|
||||||
@Description("Unlocks premium functions.")
|
|
||||||
@PremiumUnlockCompatbility
|
|
||||||
@Version("0.0.1")
|
|
||||||
class PremiumUnlockPatch : BytecodePatch(
|
|
||||||
listOf(PremiumUnlockFingerprint)
|
|
||||||
) {
|
|
||||||
override fun execute(context: BytecodeContext): PatchResult {
|
|
||||||
val result = PremiumUnlockFingerprint.result ?: return PatchResultError("${PremiumUnlockFingerprint.name} not found")
|
|
||||||
|
|
||||||
result.mutableMethod.addInstructions(
|
|
||||||
0,
|
|
||||||
"""
|
|
||||||
const v0, 0x1
|
|
||||||
return v0
|
|
||||||
"""
|
|
||||||
)
|
|
||||||
return PatchResultSuccess()
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in a new issue