1
0
Fork 0
mirror of https://github.com/HamletDuFromage/aio-switch-updater.git synced 2024-11-28 04:12:03 +00:00

fix reboot_payload.bin overwrite prompt not showing (closes https://github.com/HamletDuFromage/aio-switch-updater/issues/249)

This commit is contained in:
flb 2023-05-02 18:54:51 +02:00
parent 6e61ca97f5
commit 0ff58fccf5

View file

@ -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);