From 0ff58fccf5f1e59e9f1b5414069fd34d313097df Mon Sep 17 00:00:00 2001 From: flb Date: Tue, 2 May 2023 18:54:51 +0200 Subject: [PATCH] fix reboot_payload.bin overwrite prompt not showing (closes https://github.com/HamletDuFromage/aio-switch-updater/issues/249) --- source/extract.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/extract.cpp b/source/extract.cpp index 5a1e323..285d8be 100644 --- a/source/extract.cpp +++ b/source/extract.cpp @@ -126,7 +126,7 @@ namespace extract { } else { extractEntry(filename, zfile); - if (filename.substr(0, 13) == "hekate_ctcaer") { + if (filename.substr(0, 14) == "/hekate_ctcaer") { fs::copyFile(filename, UPDATE_BIN_PATH); if (CurrentCfw::running_cfw == CFW::ams && util::showDialogBoxBlocking(fmt::format("menus/utils/set_hekate_reboot_payload"_i18n, UPDATE_BIN_PATH, REBOOT_PAYLOAD_PATH), "menus/common/yes"_i18n, "menus/common/no"_i18n) == 0) { fs::copyFile(UPDATE_BIN_PATH, REBOOT_PAYLOAD_PATH);