mirror of
https://github.com/suchmememanyskill/TegraScript.git
synced 2025-04-29 14:19:28 -04:00
sip
This commit is contained in:
parent
9e760976df
commit
f8d1b0a606
2 changed files with 54 additions and 1 deletions
53
scripts/Dump_saves.te
Normal file
53
scripts/Dump_saves.te
Normal file
|
@ -0,0 +1,53 @@
|
|||
#REQUIRE SD
|
||||
#REQUIRE KEYS
|
||||
#REQUIRE VER 4.0.0
|
||||
|
||||
partNames = ["SYSTEM", "USER"]
|
||||
menuOptions = ["Exit"].copy()
|
||||
|
||||
partNames.foreach("x"){
|
||||
menuOptions.add("Sysmmc " + x)
|
||||
}
|
||||
|
||||
if (emu()){
|
||||
menuOptions.add("Emummc " + x)
|
||||
}
|
||||
|
||||
res = menu(menuOptions, 0)
|
||||
|
||||
if (!res){
|
||||
exit()
|
||||
}
|
||||
|
||||
clear()
|
||||
|
||||
if (res % 2) {
|
||||
mountStr = "SYSTEM"
|
||||
}.else() {
|
||||
mountStr = "USER"
|
||||
}
|
||||
|
||||
if (res > 2) {
|
||||
mount = mountemu
|
||||
}.else() {
|
||||
mount = mountsys
|
||||
}
|
||||
|
||||
if (mount(mountStr)){
|
||||
println("Mounting failed!")
|
||||
pause()
|
||||
exit()
|
||||
}
|
||||
|
||||
cpSaveFolder = menuOptions[res]
|
||||
cpSavePath = combinepath("sd:/tegraexplorer/", cpSaveFolder)
|
||||
mkdir("sd:/tegraexplorer")
|
||||
mkdir(cpSavePath)
|
||||
|
||||
res = copydir("bis:/save", cpSavePath)
|
||||
if (res) {
|
||||
println("Copy failed! Errcode: ", res)
|
||||
}.else() {
|
||||
println("Done!")
|
||||
}
|
||||
pause()
|
|
@ -1,4 +1,4 @@
|
|||
#REQUIRE VER 3.0.6
|
||||
#REQUIRE VER 4.0.0
|
||||
#REQUIRE MINERVA
|
||||
#REQUIRE KEYS
|
||||
#REQUIRE SD
|
||||
|
|
Loading…
Add table
Reference in a new issue