From 34686d8a5cf1d46a72abfb2f7e7ed926acd4f44a Mon Sep 17 00:00:00 2001 From: zhupengfei Date: Fri, 27 Mar 2020 16:25:06 +0800 Subject: [PATCH] dumper: Add copying boot9 from 0:/3DS and prompt when not found --- dist/threeSDumper.gm9 | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/dist/threeSDumper.gm9 b/dist/threeSDumper.gm9 index dfd8a26..bda721d 100644 --- a/dist/threeSDumper.gm9 +++ b/dist/threeSDumper.gm9 @@ -17,7 +17,14 @@ end set PREVIEW_MODE "threeSD Dumper\nby zhaowenlan1779\n \nWorking..." cp -w -n "1:/private/movable.sed" $[OUT]/movable.sed -cp -w -n "M:/boot9.bin" $[OUT]/boot9.bin +if find "M:/boot9.bin" NULL + cp -w -n "M:/boot9.bin" $[OUT]/boot9.bin +elif find "0:/3DS/boot9.bin" NULL + cp -w -n "0:/3DS/boot9.bin" $[OUT]/boot9.bin +else + echo "ERROR: \nboot9.bin not found. \nIf you use fastboot3ds, hold HOME while booting, \nand go to Miscellaneous... > Dump bootroms & OTP. \nWhen finished, simply execute this script again." + goto Exit +end if not find $[OUT]/firm NULL mkdir $[OUT]/firm