mirror of
https://github.com/suchmememanyskill/TegraScript.git
synced 2025-04-29 14:19:28 -04:00
added a save dumper script
This commit is contained in:
parent
c36b6909ea
commit
da07b7686e
1 changed files with 50 additions and 0 deletions
50
scripts/savedumper.te
Normal file
50
scripts/savedumper.te
Normal file
|
@ -0,0 +1,50 @@
|
||||||
|
printf("Such save, many dump");
|
||||||
|
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-){
|
||||||
|
@noemu = invert(@EMUMMC);
|
||||||
|
if (@noemu){
|
||||||
|
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();
|
Loading…
Add table
Reference in a new issue