Skip to content

Instantly share code, notes, and snippets.

@ItsCrocoSwine
Last active September 19, 2024 05:14
Show Gist options
  • Save ItsCrocoSwine/f598c0c8b09189871791cd6750d2b341 to your computer and use it in GitHub Desktop.
Save ItsCrocoSwine/f598c0c8b09189871791cd6750d2b341 to your computer and use it in GitHub Desktop.
gm9 scripts that dump DSiWare titles and saves to be used with TWiLight Menu++
# ItsCrocoSwine
# v1.0
if ask "Dump all DSiWare?"
for 2:title/00030004 *
strsplit TIDLOW $[FORPATH] /
set NAME 00030004$[TIDLOW]
if find $[FORPATH]/content/*.app GAME
cp -w -o -s $[GAME] 0:/gm9/out/DSiWare-Dumps/$[NAME].nds
if find $[FORPATH]/data/private.sav PRIVATE
cp -w -o -s $[PRIVATE] 0:/gm9/out/DSiWare-Dumps/saves/$[NAME].prv
end
if find $[FORPATH]/data/public.sav PUBLIC
cp -w -o -s $[PUBLIC] 0:/gm9/out/DSiWare-Dumps/saves/$[NAME].pub
end
end
next
end
# ItsCrocoSwine
# v1.1
input "Please enter the TIDLOW of the game: " TIDLOW
set ERRORMSG "Title does not exist"
find 2:title/00030004/$[TIDLOW] PATH
set NAME 00030004$[TIDLOW]
if find $[PATH]/content/*.app GAME
if ask "Would you like to change the file name?\ndefault: $[NAME].nds"
input "Please enter a file name: " NAME
end
set ERRORMSG "Failed dumping app"
cp $[GAME] 0:/gm9/out/$[NAME].nds
set ERRORMSG "Failed dumping public.sav"
if find $[PATH]/data/public.sav PUBLIC
cp $[PUBLIC] 0:/gm9/out/$[NAME].pub
end
set ERRORMSG "Failed dumping private.sav"
if find $[PATH]/data/private.sav PRIVATE
cp $[PRIVATE] 0:/gm9/out/$[NAME].prv
end
else
echo "App not found"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment