From 0a44a31f2c5ef640bdbd7cc1b786d056d6be1673 Mon Sep 17 00:00:00 2001 From: CTCaer Date: Sun, 14 Jun 2020 13:47:47 +0300 Subject: [PATCH] hos: Allow booting when kip1 patches failed This can lead to a hanged boot if kip was corrupted or it can lead to unforeseen results if emummc or nogc patches fail and user chooses to continue. --- bootloader/hos/hos.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/bootloader/hos/hos.c b/bootloader/hos/hos.c index 6b3f6cb..7521b02 100644 --- a/bootloader/hos/hos.c +++ b/bootloader/hos/hos.c @@ -857,8 +857,15 @@ int hos_launch(ini_sec_t *cfg) { EHPRINTFARGS("Failed to apply '%s'!", unappliedPatch); - _free_launch_components(&ctxt); - goto error; // MUST stop here, because if user requests 'nogc' but it's not applied, their GC controller gets updated! + gfx_puts("\nPress POWER to continue.\nPress VOL to go to the menu.\n"); + display_backlight_brightness(h_cfg.backlight, 1000); + + u32 btn = btn_wait(); + if (!(btn & BTN_POWER)) + { + _free_launch_components(&ctxt); + goto error; // MUST stop here, because if user requests 'nogc' but it's not applied, their GC controller gets updated! + } } // Rebuild and encrypt package2.