From 4ed145f372fbc31f212a2b381b009c0946be4a90 Mon Sep 17 00:00:00 2001 From: Sims <38142618+suchmememanyskill@users.noreply.github.com> Date: Thu, 16 Jan 2025 21:25:40 +0100 Subject: [PATCH] Copy 8000000000000000 too --- scripts/SystemRestoreV3.te | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/SystemRestoreV3.te b/scripts/SystemRestoreV3.te index 96ba086..952b1a5 100644 --- a/scripts/SystemRestoreV3.te +++ b/scripts/SystemRestoreV3.te @@ -178,6 +178,15 @@ writeSys = { if (copyfile(combinepath(cwd(), "SYSTEM/save/8000000000000120"), "bis:/save/8000000000000120")) { fatal(fatalMsg = "Failed to copy system save") } + + if (!fsexists("bis:/save/8000000000000000")) + { + p("\nWarning: 8000000000000000 does not exist. This save won't be signed! Copying") + if (copyfile(combinepath(cwd(), "SYSTEM/save/8000000000000000"), "bis:/save/8000000000000000")) { + fatal(fatalMsg = "Failed to copy fs save index save") + } + } + p("\n") }