From: chaoskagami Date: Thu, 27 Oct 2016 15:19:03 +0000 (-0400) Subject: Update anti-DG. X-Git-Tag: v0.3.1~68 X-Git-Url: https://chaos.moe/g/?a=commitdiff_plain;h=f9ba3917f7f7190e1e7258686dc3869afb9d0d18;p=corbenik%2Fcorbenik.git Update anti-DG. I'll switch to a code patch later; I feel patching data for this seems error-prone. --- diff --git a/patch/aadowngrade.pco b/patch/aadowngrade.pco index 3888cff..4f6fa6c 100644 --- a/patch/aadowngrade.pco +++ b/patch/aadowngrade.pco @@ -9,11 +9,21 @@ # Anti-anti-downgrade fix. +# How this works: The FIRM has a list of titleids in it to verify +# that downgrade is not performed. This is verified in a function +# that loops through each of the titleids on an install. + +# The downgrade check ends when a zero is encountered. Luma patches +# this check by zeroing the first titleid. + +# The "first" revision of this patched the code for said check to never +# execute. Sadly, the code is VERY different in 11.2... + # Relative to arm9 segment rel section2 -# We want to patch the fifth byte of this pattern. -find 890a814202D2 +find ff000002 abortnf -fwd 05 -set E0 +fwd 01 +set 0000000000000000 +