]> Chaos Git - corbenik/corbenik.git/commitdiff
According to Luma's commit log, <=8.0 only has one instance of the cart update pattern
authorchaoskagami <kagami@chaos.moe>
Tue, 20 Dec 2016 00:45:22 +0000 (19:45 -0500)
committerchaoskagami <kagami@chaos.moe>
Tue, 20 Dec 2016 00:45:22 +0000 (19:45 -0500)
patch/block_cart_update.pco

index cedfb67e2647157349abd891e08c4297bfa9b45b..ff878725164fc8ebe12885c8ee13f7b46d4d4af0 100644 (file)
@@ -6,12 +6,14 @@
 
 rel exe_text
 
-# Status: needs loader
+# According to Luma, there's only one instance of the cart update pattern on NS <= 8.0.
+# https://github.com/AuroraWright/Luma3DS/commit/f492318e3c15e16cf572c76cef06dd2014953f20
 
-find 0C18E1D8
-abortnf
-set  0B1821C8
+# Therefore, loop to replace these instances and exit upon not-found.
 
 find 0C18E1D8
-abortnf
+jmpnf end
 set  0B1821C8
+jmp next
+
+end: