TegraScript/scripts/savedumper.te
Such Meme, Many Skill 852f893b76 Changes for TE v1.5.1
2020-04-12 22:30:47 +02:00

49 lines
No EOL
1 KiB
Text

printf("TegraScript save dumper")
printf("What mmc would you like to dump from")
printf("Press + for sysnand")
if (@EMUMMC) {
printf("Or press - for emummc")
}
printf("Press power to cancel")
pause()
if (@BTN_VOL+){
printf("Mounting SYSMMC...")
mmc_connect("SYSMMC")
}
if (@BTN_VOL-){
if (@EMUMMC, == , 0){
exit()
}
printf("Mounting EMUMMC...")
mmc_connect("EMUMMC")
}
if (@BTN_POWER) {
exit()
}
printf("Which partition do you want to dump from? + for SYSTEM - for USER")
pause()
if (@BTN_VOL+) {
printf("Mounting SYSTEM...")
mmc_mount("SYSTEM")
setString("systemSaves", $folder)
}
if (@BTN_VOL-) {
printf("Mounting USER....")
mmc_mount("USER")
setString("userSaves", $folder)
}
combineStrings("sd:/tegraexplorer/", $folder, $path)
fs_mkdir($path)
combineStrings("Copying saves to ", $path, $out)
printf($out)
printf("")
fs_copyRecursive("emmc:/save", $path)
printf("")
printf("Done, press any button to exit")
pause()
exit()