# EmuNAND backup GM9 script
# This will create a backup named [DATESTAMP]_[SERIAL]_emunand_???.bin
# author: d0k3

set ERRORMSG   "EmuNAND backup failed"
set SUCCESSMSG "EmuNAND backup success"

ask "Create a EmuNAND backup in $[GM9OUT]?"
findnot $[GM9OUT]/$[DATESTAMP]_$[SERIAL]_emunand_???.bin OUTPATH
cp -h E:/nand_minsize.bin $[OUTPATH]
echo "Backup created successfully:\n$[OUTPATH]"
