]> Chaos Git - corbenik/corbenik.git/commitdiff
Update anti-DG.
authorchaoskagami <kagami@chaos.moe>
Thu, 27 Oct 2016 15:19:03 +0000 (11:19 -0400)
committerchaoskagami <kagami@chaos.moe>
Thu, 27 Oct 2016 15:53:19 +0000 (11:53 -0400)
I'll switch to a code patch later; I feel patching data for this seems error-prone.

patch/aadowngrade.pco

index 3888cff2a1f9f86e84a2c53f87c168e9c2499ecd..4f6fa6ceb12d18e73f1262b44198d77a688410de 100644 (file)
@@ -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
+