script update for HOS 12.1.0, dropping 12.0.x support

This commit is contained in:
KazushiM
2021-07-07 12:43:54 +08:00
parent 0907208e60
commit 0345439e4d
2 changed files with 24 additions and 5 deletions

View File

@@ -99,7 +99,7 @@ Overclocking suite for Switch(Erista and Mariko) running on Atmosphere CFW.
**Steps:** **Steps:**
1. Make sure you are running targeted HOS (12.0.x and 12.1.0), and have `prod.keys` *with latest master key (0b for 12.1.0+)* dumped by [Lockpick_RCM](https://github.com/shchmue/Lockpick_RCM). 1. Make sure you are running targeted HOS (12.1.0), and have `prod.keys` *with latest master key (0b)* dumped by [Lockpick_RCM](https://github.com/shchmue/Lockpick_RCM).
2. Loader patches for Atmosphere: Grab from the web and apply. I won't provide them here. (Or build AMS with `ValidateAcidSignature()` stubbed.) 2. Loader patches for Atmosphere: Grab from the web and apply. I won't provide them here. (Or build AMS with `ValidateAcidSignature()` stubbed.)

View File

@@ -1,5 +1,5 @@
pcvModulePath = "bis:/Contents/registered/875acbb5a5b6526159ac68a3c91884c7.nca/00" pcvModulePath = "bis:/Contents/registered/3067dd44caacf32f8bca54ecde4c56e2.nca/00"
OldBackupPath = "sd:/atmosphere/oc_patches/12-patch.bak" OldBackupPath = "sd:/atmosphere/oc_patches/12-1-patch.bak"
BackupPath = "sd:/atmosphere/oc_patches/pcv-backup" BackupPath = "sd:/atmosphere/oc_patches/pcv-backup"
PatchPath = "sd:/atmosphere/oc_patches/pcv-module" PatchPath = "sd:/atmosphere/oc_patches/pcv-module"
@@ -20,7 +20,7 @@ pausecont = {
} }
header = { header = {
println("\n-- Switch OC Suite Patcher --\n\n") println("\n-- Switch OC Suite Patcher (HOS 12.1.0) --\n\n")
println(" OC Suite is provided 'as is' without warranty of any kind,\n USE AT YOUR OWN RISKS!") println(" OC Suite is provided 'as is' without warranty of any kind,\n USE AT YOUR OWN RISKS!")
println(" If you don't have Joy-Cons connected or are using Switch Lite,") println(" If you don't have Joy-Cons connected or are using Switch Lite,")
println(" Press VOL+/- to navigate and POWER button to confirm.\n") println(" Press VOL+/- to navigate and POWER button to confirm.\n")
@@ -56,28 +56,38 @@ if ( res == 2 || ( res == 1 && ! _EMU ) ) {
println("SysMMC is selected!") println("SysMMC is selected!")
wait(1000) wait(1000)
if ( mmcConnect("SYSMMC") ) { if ( mmcConnect("SYSMMC") ) {
color("RED")
println("An error occured during mmc connect!") println("An error occured during mmc connect!")
color("WHITE")
pauseexit() pauseexit()
} }
} }
clearscreen()
println("Mounting SYSTEM Partition and Checking...") println("Mounting SYSTEM Partition and Checking...")
if ( mmcMount("SYSTEM") ) { if ( mmcMount("SYSTEM") ) {
color("RED")
println("An error occured during SYSTEM mount!") println("An error occured during SYSTEM mount!")
color("WHITE")
pauseexit() pauseexit()
} }
if ( ! fileExists(pcvModulePath) ) { if ( ! fileExists(pcvModulePath) ) {
color("RED")
println("You're NOT using targeted Horizon OS version!") println("You're NOT using targeted Horizon OS version!")
println("Targeted version: 12.0.x\n") println("Targeted version: 12.1.0\n")
color("WHITE")
pauseexit() pauseexit()
} }
if ( fileExists(OldBackupPath) ) { if ( fileExists(OldBackupPath) ) {
println("Old Backup found! Renaming...") println("Old Backup found! Renaming...")
if ( fileMove(OldBackupPath, BackupPath) ) { if ( fileMove(OldBackupPath, BackupPath) ) {
color("RED")
println("An error occured during renaming backup!") println("An error occured during renaming backup!")
color("WHITE")
pauseexit() pauseexit()
} }
} }
@@ -96,6 +106,7 @@ if ( res == 0 ) {
} }
if ( res == 1 ) { if ( res == 1 ) {
clearscreen()
if ( fileExists(BackupPath) ) { if ( fileExists(BackupPath) ) {
color("RED") color("RED")
println("You have the backup already. Do you want to DELETE it and redump?") println("You have the backup already. Do you want to DELETE it and redump?")
@@ -110,14 +121,17 @@ if ( res == 1 ) {
} }
println("Dumping...") println("Dumping...")
if ( fileCopy(pcvModulePath, BackupPath) ) { if ( fileCopy(pcvModulePath, BackupPath) ) {
color("RED")
println("An error occured during dumping!") println("An error occured during dumping!")
pauseexit() pauseexit()
color("WHITE")
} }
println("Done! ") println("Done! ")
pauseexit() pauseexit()
} }
if ( res == 2 ) { if ( res == 2 ) {
clearscreen()
if ( ! fileExists(PatchPath) ) { if ( ! fileExists(PatchPath) ) {
color("RED") color("RED")
println("Patched PCV Module NOT FOUND!") println("Patched PCV Module NOT FOUND!")
@@ -127,16 +141,21 @@ if ( res == 2 ) {
} }
println("Applying Patched PCV Module...") println("Applying Patched PCV Module...")
if ( fileDel(pcvModulePath) && fileCopy(PatchPath, pcvModulePath) ) { if ( fileDel(pcvModulePath) && fileCopy(PatchPath, pcvModulePath) ) {
olor("RED")
println("An error occured!") println("An error occured!")
pauseexit() pauseexit()
color("WHITE")
} }
println("Done! ") println("Done! ")
pauseexit() pauseexit()
} }
if ( res == 3 ) { if ( res == 3 ) {
clearscreen()
if ( ! fileExists(BackupPath) ) { if ( ! fileExists(BackupPath) ) {
color("RED")
println("PCV Module Backup NOT FOUND!") println("PCV Module Backup NOT FOUND!")
color("WHITE")
pauseexit() pauseexit()
} }
println("Restoring PCV Module...") println("Restoring PCV Module...")