1
0
Fork 0
mirror of https://github.com/suchmememanyskill/TegraExplorer.git synced 2024-11-26 05:42:07 +00:00

Change flow of firmwaredump script

This commit is contained in:
suchmememanyskill 2023-10-11 11:16:43 +02:00
parent 91261f1671
commit 8bc5a23425

View file

@ -15,18 +15,22 @@ fv={a=readsave("bis:/save/8000000000000120")
maj=((ver>>26)&((1<<6)- 1)) maj=((ver>>26)&((1<<6)- 1))
}.else(){print("Fw not found")pe()} }.else(){print("Fw not found")pe()}
a=0 fwstr()} a=0 fwstr()}
if(mountsys("SYSTEM")){print("SYSTEM MOUNT FAIL")pe()}
fv()
sysfw=fw
p("Sys' fw is",fw)
emufw=""
if (emu()){if(!mountemu("SYSTEM")){fv()emufw=fw p("Emu's fw is",fw)}}
op=["Exit","Dump sysmmc"].copy() op=["Exit","Dump sysmmc"].copy()
if (emufw!=""){op+"Dump emummc"} if (emu()){op+"Dump emummc"}
p()r=menu(op,0)clear() p()r=menu(op,0)clear()
if(r==0){exit()} if(r==0){exit()}
if(r==1){fw=sysfw if(mountsys("SYSTEM")){print("SYSTEM MOUNT FAIL")pe()}} if(r==1){if(mountsys("SYSTEM")){print("SYSTEM MOUNT FAIL")pe()}}
if(r==2){fw=emufw if(mountemu("SYSTEM")){print("SYSTEM MOUNT FAIL")pe()}} if(r==2){if(mountemu("SYSTEM")){print("SYSTEM MOUNT FAIL")pe()}}
clear()
fv()
p("Found firmware",fw)
p("Press Power or A to dump firmware, any other key to exit")
a = pause()
if (!a.a) {exit()}
clear()
mkdir("sd:/tegraexplorer") mkdir("sd:/tegraexplorer")
mkdir("sd:/tegraexplorer/Firmware") mkdir("sd:/tegraexplorer/Firmware")
bsp="sd:/tegraexplorer/Firmware/"+fw bsp="sd:/tegraexplorer/Firmware/"+fw