mirror of
https://github.com/Dark98/threeSD.git
synced 2026-07-03 16:49:04 +00:00
67e6b05e87
- DPFS container is fixed - SD Savegame is fixed - added slot0x25KeyX load - added regex for titile ID - added aes_keys.txt import - sd savegame listing is fixed (uninitialized won't be listed any more) - error handling is improved (removed asserts and replaced with return values) - UI is now functional - config is now checked in main
55 lines
1.3 KiB
Plaintext
55 lines
1.3 KiB
Plaintext
# Copyright 2019 threeSD Project
|
|
# Licensed under GPLv2 or any later version
|
|
# Refer to the license.txt file included.
|
|
|
|
# GM9 Script for dumping necessary files automatically.
|
|
|
|
set PREVIEW_MODE "threeSD Dumper\nby zhaowenlan1779"
|
|
set OUT "0:/threeSD"
|
|
if not find $[OUT] NULL
|
|
mkdir $[OUT]
|
|
end
|
|
|
|
if not ask "Execute threeSD Dumper?"
|
|
goto Exit
|
|
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 not find $[OUT]/firm NULL
|
|
mkdir $[OUT]/firm
|
|
end
|
|
if chk $[ONTYPE] "N3DS"
|
|
if not find $[OUT]/firm/new NULL
|
|
mkdir $[OUT]/firm/new
|
|
end
|
|
cp -w -n "1:/title/00040138/20000003/content" $[OUT]/firm/new
|
|
rm $[OUT]/firm/new/cmd
|
|
find $[OUT]/firm/new/*.app APP
|
|
decrypt $[APP]
|
|
else
|
|
if not find $[OUT]/firm/old NULL
|
|
mkdir $[OUT]/firm/old
|
|
end
|
|
cp -w -n "1:/title/00040138/00000003/content" $[OUT]/firm/old
|
|
rm $[OUT]/firm/old/cmd
|
|
find $[OUT]/firm/old/*.app APP
|
|
decrypt $[APP]
|
|
end
|
|
|
|
if chk $[ONTYPE] "N3DS"
|
|
cp -w -n "S:/sector0x96.bin" $[OUT]/sector0x96.bin
|
|
end
|
|
|
|
sdump -w seeddb.bin
|
|
cp -w -n "0:/gm9/out/seeddb.bin" $[OUT]/seeddb.bin
|
|
rm "0:/gm9/out/seeddb.bin"
|
|
|
|
set PREVIEW_MODE "threeSD Dumper\nby zhaowenlan1779\n \nSuccess!"
|
|
echo "Successfully dumped necessary\nfiles for threeSD."
|
|
|
|
@Exit
|