From 8b12a5b20a416eea2ea7ed271940f7d8327f1495 Mon Sep 17 00:00:00 2001 From: Borrajo Date: Thu, 14 Nov 2024 01:28:08 -0300 Subject: [PATCH] Add option without backup --- scripts/SystemRestoreV3.te | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/scripts/SystemRestoreV3.te b/scripts/SystemRestoreV3.te index 96ba086..876ae7b 100644 --- a/scripts/SystemRestoreV3.te +++ b/scripts/SystemRestoreV3.te @@ -181,14 +181,20 @@ writeSys = { p("\n") } +backup = 1 + actionRestoreBis = { extractBis() - backupBis() + if(backup){ + backupBis() + } writeBis() } actionRestoreSys = { - backupSys() + if(backup){ + backupSys() + } writeSys() signSave() } @@ -268,6 +274,16 @@ if ((res == 2) || (res == 3)){ restoreSystem = 1 } +clear() +p("Switch System Restore\n") +res = menu(["With Backup", "No Backup"], 0) +if (res == 0){ + backup = 1 +} +if (res == 1){ + backup = 0 +} + clear() p("Switch System Restore") color(0xFF00) @@ -279,6 +295,7 @@ if (useSys){ } p("Restore BIS:", restoreBis) +p("Make Backup:", backup) p("Restore SYSTEM:", restoreSystem) p("Restoring onto:", mmcStr) color(0xFFFFFF)