From 76781f6fb7aa9cdb90fb136922c5799847a7627d Mon Sep 17 00:00:00 2001 From: suchmememanyskill <38142618+suchmememanyskill@users.noreply.github.com> Date: Tue, 28 May 2024 21:14:29 +0200 Subject: [PATCH] Update systemwipe script message --- scripts/SystemWipe.te | 35 +++++++++++++++++++++-------------- 1 file changed, 21 insertions(+), 14 deletions(-) diff --git a/scripts/SystemWipe.te b/scripts/SystemWipe.te index 427f253..c272243 100644 --- a/scripts/SystemWipe.te +++ b/scripts/SystemWipe.te @@ -26,9 +26,9 @@ border = { setpixels(1260,20,1279,699,border_color) } -i = 20 +i = 10 x_pos = 10 -y_pos = 8 +y_pos = 12 ["WARNING!!!", "", @@ -37,27 +37,34 @@ y_pos = 8 "- Your Save Data", "- Your Game Data", "- Your User Data", - "- (Some) System Calibration Data" - "", - "This script includes wiping some calibration data.", - "Among other uses, this data is used for battery calibration.", - "This is especially problematic for lite systems,", - " as it makes the system initialize with unsafe", - " battery calibration values!", "", "Restoring an emmc backup is always preferable over wiping.", "Please only use this as a last resort.", - "This script is intended to be used in aid of unbricking.", - "", - "Pull requests to fix the calibration issue are welcome", - "https://github.com/suchmememanyskill/TegraExplorer"].foreach("line") + "This script is intended to be used in aid of unbricking." +].foreach("line") { printpos(x_pos, y_pos) y_pos = y_pos + 1 print(line) } -time = 10000 +if (!fsexists("bis:/save/"+is[1])) +{ + [ + "", + "DeviceSettings save (8000000000000053) is missing!!!", + "This script cannot recover lost battery calibration data.", + "The system will initialize with default values.", + "These values are unsafe for lite systems!" + ].foreach("line") + { + printpos(x_pos, y_pos) + y_pos = y_pos + 1 + print(line) + } +} + +time = 5000 y_pos = y_pos + 4 while (i > 0)