mirror of
https://github.com/suchmememanyskill/TegraScript.git
synced 2025-04-29 22:29:27 -04:00
Update to support the new fws + fwdump dump when fw not detected
This commit is contained in:
parent
c65961e6dc
commit
c25d118ec1
2 changed files with 43 additions and 21 deletions
|
@ -88,6 +88,12 @@ setString("9.2.0", $920_version)
|
||||||
setString("5625cdc21d5f1ca52f6c36ba261505b9.nca", $1000_chk)
|
setString("5625cdc21d5f1ca52f6c36ba261505b9.nca", $1000_chk)
|
||||||
setString("d5bc167565842ee61f9670d23759844d.nca", $1000_exfat)
|
setString("d5bc167565842ee61f9670d23759844d.nca", $1000_exfat)
|
||||||
setString("10.0.0", $1000_version)
|
setString("10.0.0", $1000_version)
|
||||||
|
setString("36ab1acf0c10a2beb9f7d472685f9a89.nca", $1001_chk)
|
||||||
|
setString("d5bc167565842ee61f9670d23759844d.nca", $1001_exfat)
|
||||||
|
setString("10.0.1", $1001_version)
|
||||||
|
setString("e951bc9dedcd54f65ffd83d4d050f9e0.nca", $1002_chk)
|
||||||
|
setString("d5bc167565842ee61f9670d23759844d.nca", $1002_exfat)
|
||||||
|
setString("10.0.2", $1002_version)
|
||||||
|
|
||||||
printf("FVI script edition")
|
printf("FVI script edition")
|
||||||
printf("")
|
printf("")
|
||||||
|
@ -123,7 +129,7 @@ printf("")
|
||||||
@i = setInt(1)
|
@i = setInt(1)
|
||||||
|
|
||||||
@loop = getPosition()
|
@loop = getPosition()
|
||||||
if (@i, ">=", 91){
|
if (@i, ">=", 97){
|
||||||
printf("No firmware found")
|
printf("No firmware found")
|
||||||
printf("Press any button to exit")
|
printf("Press any button to exit")
|
||||||
pause()
|
pause()
|
||||||
|
|
|
@ -88,6 +88,15 @@ setString("9.2.0", $920_version)
|
||||||
setString("5625cdc21d5f1ca52f6c36ba261505b9.nca", $1000_chk)
|
setString("5625cdc21d5f1ca52f6c36ba261505b9.nca", $1000_chk)
|
||||||
setString("d5bc167565842ee61f9670d23759844d.nca", $1000_exfat)
|
setString("d5bc167565842ee61f9670d23759844d.nca", $1000_exfat)
|
||||||
setString("10.0.0", $1000_version)
|
setString("10.0.0", $1000_version)
|
||||||
|
setString("36ab1acf0c10a2beb9f7d472685f9a89.nca", $1001_chk)
|
||||||
|
setString("d5bc167565842ee61f9670d23759844d.nca", $1001_exfat)
|
||||||
|
setString("10.0.1", $1001_version)
|
||||||
|
setString("e951bc9dedcd54f65ffd83d4d050f9e0.nca", $1002_chk)
|
||||||
|
setString("d5bc167565842ee61f9670d23759844d.nca", $1002_exfat)
|
||||||
|
setString("10.0.2", $1002_version)
|
||||||
|
|
||||||
|
# check tid = 0100000000000809, type data
|
||||||
|
# exfat tid = 010000000000081B, type data
|
||||||
|
|
||||||
printf("TegraScript firmware dumper")
|
printf("TegraScript firmware dumper")
|
||||||
printf("")
|
printf("")
|
||||||
|
@ -123,32 +132,39 @@ printf("")
|
||||||
setString("emmc:/Contents/registered/", $basePath)
|
setString("emmc:/Contents/registered/", $basePath)
|
||||||
|
|
||||||
@LOOP = getPosition()
|
@LOOP = getPosition()
|
||||||
if (@i, ">=", 91){
|
if (@i, ">=", 97){
|
||||||
printf("No valid firmware version found")
|
printf("No valid firmware version found")
|
||||||
printf("Press any button to exit")
|
printf("Press Power to dump anyway")
|
||||||
|
printf("Press vol+/- to exit")
|
||||||
pause()
|
pause()
|
||||||
exit()
|
|
||||||
|
if (@BTN_POWER, == , 0){
|
||||||
|
exit()
|
||||||
|
}
|
||||||
|
|
||||||
|
setString("Unknown", $version)
|
||||||
}
|
}
|
||||||
|
if (@i, <, 97){
|
||||||
|
setStringIndex(@i, $nca)
|
||||||
|
combineStrings($basePath, $nca, $path)
|
||||||
|
@exists = fs_exists($path)
|
||||||
|
|
||||||
setStringIndex(@i, $nca)
|
if (@exists, == , 0){
|
||||||
combineStrings($basePath, $nca, $path)
|
@i = math(@i, "+", 3)
|
||||||
@exists = fs_exists($path)
|
goto(@LOOP)
|
||||||
|
}
|
||||||
|
|
||||||
if (@exists, == , 0){
|
@i = math(@i, "+", 1)
|
||||||
@i = math(@i, "+", 3)
|
setStringIndex(@i, $nca)
|
||||||
goto(@LOOP)
|
combineStrings($basePath, $nca, $path)
|
||||||
}
|
@checkexfat = fs_exists($path)
|
||||||
|
|
||||||
@i = math(@i, "+", 1)
|
@i = math(@i, "+", 1)
|
||||||
setStringIndex(@i, $nca)
|
setStringIndex(@i, $version)
|
||||||
combineStrings($basePath, $nca, $path)
|
|
||||||
@checkexfat = fs_exists($path)
|
|
||||||
|
|
||||||
@i = math(@i, "+", 1)
|
if (@checkexfat){
|
||||||
setStringIndex(@i, $version)
|
combineStrings($version, "_exFAT", $version)
|
||||||
|
}
|
||||||
if (@checkexfat){
|
|
||||||
combineStrings($version, "_exFAT", $version)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("Firmware found:")
|
printf("Firmware found:")
|
||||||
|
@ -178,7 +194,7 @@ if (@ISDIRVALID){
|
||||||
combineStrings($basePath, $FILENAME, $path)
|
combineStrings($basePath, $FILENAME, $path)
|
||||||
}
|
}
|
||||||
|
|
||||||
setPrintPos(0, 15)
|
setPrintPos(0, 16)
|
||||||
printInt(@count)
|
printInt(@count)
|
||||||
@count = math(@count, "+", 1)
|
@count = math(@count, "+", 1)
|
||||||
printf($FILENAME)
|
printf($FILENAME)
|
||||||
|
|
Loading…
Add table
Reference in a new issue