rwildcard = $(foreach d, $(wildcard $1*), $(filter $(subst *, %, $2), $d) $(call rwildcard, $d/, $2))
+# Only cygwin is maybe working on windows.
PATH := $(PATH):$(DEVKITARM)/bin
CROSS_CC := arm-none-eabi-gcc
# $name MysteryMachine Patcher (Loader)
-# $desc Patches Mystery Gift in Pokemon X, Y, Omega Ruby, and Alpha Sapphire to point to SALT's servers. See <https://mys.salthax.org/>.
+# $desc Patches Mystery Gift in Pokemon X, Y, Omega Ruby, and Alpha Sapphire to point to SALT's servers. See <https://mys.salthax.org/>
# $title 000400000011C400 000400000011C500 0004000000055D00 0004000000055E00
# $ver 01
# $uuid 0001
-# $name Disable SVC permission checks
-# $desc Disables permission checks on SVC calls, so all titles have permission to use all SVC calls. This is a potential security hazard.
+# $name Disable SVC Permission Checks
+# $desc Disables permission checks on SVC calls, so all titles have permission to use all SVC calls. This is a potential security hazard, especially with svcBackdoor Fixup.
# $ver 01
# $uuid 0002
mnt=/mnt/ext1
mount ${dev}1 $mnt || exit 0
-cp out/arm9loaderhax.bin $mnt/arm9loaderhax.bin || exit 0
+cp out/arm9loaderhax.bin $mnt/arm9payload.bin || exit 0
+cp out/arm9loaderhax.bin $mnt/anim/boot/a.bin || exit 0
+cp out/arm9loaderhax.bin $mnt/anim/boot/l.bin || exit 0
+cp out/arm9loaderhax.bin $mnt/anim/boot/r.bin || exit 0
+cp out/arm9loaderhax.bin $mnt/anim/boot/none.bin || exit 0
rm -rf $mnt/corbenik
cp -r out/corbenik $mnt/ || exit 0
cp -r input/corbenik $mnt/ || exit 0
# $name Title Downgrade Fix (11.0 NFIRM)
-# $desc Removes added checks to prevent downgrade of system titles (in 11.0 NATIVE_FIRM)
+# $desc Removes added checks to prevent downgrade of system titles (in 11.0 NATIVE_FIRM.) Do not use on any other native_firm.
# $ver 09
# $uuid 00
# $flags require
-# $name AGB Signature fix
+# $name AGB Signature Fix
# $desc Patches signatures in AGB_FIRM. This allows booting unsigned GBA games.
# $ver 09
# $uuid 39
-# $name Block Cart Updates (Loader)
-# $desc Blocks update checks on cartridges (and also allows region free carts, as a byproduct.)
+# $name Block Cart Update / Cart RF (Loader)
+# $desc Blocks update checks on cartridges and also allows region free carts, as a byproduct.
# $title 0004013000008002
# $ver 09
# $uuid 01
# $name ErrDisp devmode (Loader)
-# $desc Forces ErrDisp into displaying developer info on crashes without developer UNITINFO. Doesn't break eShop, so there's no harm.
+# $desc Forces ErrDisp into displaying developer info on crashes without developer UNITINFO. Doesn't break eShop, so there's no harm in enabling this.
# $title 0004003000008A02
# $ver 09
# $uuid 04
# $name Fake Friends module version (Loader)
-# $desc Allows going online without the latest firmware.
+# $desc Allows going online without the latest firmware. Only enable on non-11.0.0 firmware.
# $title 0004013000003202
# $ver 09
# $uuid 05
# $name ARM11 XN Disable
-# $desc Disables the XN bit on the ARM11 kernel to allow executing code from memory. May be unsafe.
+# $desc Disables the XN bit on the ARM11 kernel to allow executing code from memory. May be a security hazard.
# $ver 09
# $uuid 06
# $flags devmode
-# $name MSET Version (Loader)
+# $name Settings Version String (Loader)
# $desc Replaces 'Ver.' with a custom string like '.hack//1100:32U'
# $title 0004001000021000 0004001000020000 0004001000022000 0004001000026000 0004001000027000 0004001000028000
# $ver 09
-# $name FIRM Protect
-# $desc Prevents writing FIRM to the NAND during updates.
+# $name FIRM Protection
+# $desc Prevents writing FIRM to the NAND during updates. Enable this if booting sysNAND.
# $ver 09
# $uuid 08
# $flags require
-# Status: Working
+# Status: Untested, but theoretically fine (Next system update I'll either brick or I won't.)
rel native_p9
# String: 'exe:'
-# $name Region free HOME (Loader)
-# $desc Allows launching installed software from any region. This is only for CIA titles.
+# $name Region Free HOME (Loader)
+# $desc Allows launching installed software from any region. This is only for CIA titles, not carts.
# $title 0004003000008F02 0004003000008202 0004003000009802 000400300000A102 000400300000A902 000400300000B102
# $ver 09
# $uuid 09
-# $name RO signature fix (Loader)
-# $desc Allows usage of unsigned CRO files. This is useful for romhacks of ORAS, for example.
+# $name RO Signature Fix (Loader)
+# $desc Allows usage of unsigned/invalidly signed CRO files (shared objects/libraries) This is useful for romhacks of ORAS, for example.
# $title 0004013000003702
# $ver 09
# $uuid 0a
# $name Developer UNITINFO
-# $desc Imitates a panda's configuration. For the average user, loader ErrDisp is enough. This will break eShop/online access as long as it is enabled.
+# $desc Pretend to be a developer console. For the average user, loader ErrDisp is enough. This will break eShop/online access as long as it is enabled.
# $ver 09
# $uuid 0d
# $flags devmode