mirror of
https://github.com/suchmememanyskill/TegraExplorer.git
synced 2024-12-26 03:16:03 +00:00
Change flow of firmwaredump script
This commit is contained in:
parent
91261f1671
commit
8bc5a23425
1 changed files with 13 additions and 9 deletions
|
@ -15,18 +15,22 @@ fv={a=readsave("bis:/save/8000000000000120")
|
|||
maj=((ver>>26)&((1<<6)- 1))
|
||||
}.else(){print("Fw not found")pe()}
|
||||
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()
|
||||
if (emufw!=""){op+"Dump emummc"}
|
||||
if (emu()){op+"Dump emummc"}
|
||||
p()r=menu(op,0)clear()
|
||||
if(r==0){exit()}
|
||||
if(r==1){fw=sysfw if(mountsys("SYSTEM")){print("SYSTEM MOUNT FAIL")pe()}}
|
||||
if(r==2){fw=emufw if(mountemu("SYSTEM")){print("SYSTEM MOUNT FAIL")pe()}}
|
||||
if(r==1){if(mountsys("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/Firmware")
|
||||
bsp="sd:/tegraexplorer/Firmware/"+fw
|
||||
|
|
Loading…
Reference in a new issue