TegraScript/scripts/savedumper.te
Such Meme, Many Skill dce81c523c TE 2.0.0 changes
2020-05-03 02:37:30 +02:00

61 lines
No EOL
1.2 KiB
Text

printf("TegraScript save dumper")
printf("What mmc would you like to dump from")
printf("Press A for sysmmc")
if (@EMUMMC) {
printf("Or press Y for emummc")
}
printf("Press any other button to exit")
pause()
@checkInput = setInt(0);
if (@BTN_A){
printf("Mounting SYSMMC...")
mmc_connect("SYSMMC")
@checkInput = setInt(1);
}
if (@BTN_Y){
if (@EMUMMC, == , 0){
exit()
}
printf("Mounting EMUMMC...")
mmc_connect("EMUMMC")
@checkInput = setInt(1);
}
if (@checkInput, == , 0){
exit()
}
printf("Which partition do you want to dump from? X for SYSTEM, Y for USER")
pause()
@checkInput = setInt(0);
if (@BTN_X) {
printf("Mounting SYSTEM...")
mmc_mount("SYSTEM")
setString("systemSaves", $folder)
@checkInput = setInt(1);
}
if (@BTN_Y) {
printf("Mounting USER....")
mmc_mount("USER")
setString("userSaves", $folder)
@checkInput = setInt(1);
}
if (@checkInput, == , 0){
exit()
}
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()