1
0
Fork 0
mirror of https://github.com/CTCaer/hekate.git synced 2024-11-26 11:42:09 +00:00

Push changes as requested

This commit is contained in:
Aurora Wright 2020-10-17 21:11:21 +02:00
parent e3421fd44e
commit 216d97aada

View file

@ -949,19 +949,14 @@ int hos_launch(ini_sec_t *cfg)
{ {
EHPRINTFARGS("Failed to apply '%s'!", unappliedPatch); EHPRINTFARGS("Failed to apply '%s'!", unappliedPatch);
bool prevent_sysmmc_boot = false; bool emmc_patch_failed = !strcmp(unappliedPatch, "emummc");
if (!strcmp(unappliedPatch, "emummc") && ctxt.emummc_forced) if (!emmc_patch_failed)
prevent_sysmmc_boot = true; {
if (prevent_sysmmc_boot)
gfx_puts("\nPress POWER or VOL to go to the menu.\n");
else
gfx_puts("\nPress POWER to continue.\nPress VOL to go to the menu.\n"); gfx_puts("\nPress POWER to continue.\nPress VOL to go to the menu.\n");
display_backlight_brightness(h_cfg.backlight, 1000);
}
display_backlight_brightness(h_cfg.backlight, 1000); if (emmc_patch_failed || !(btn_wait() & BTN_POWER))
u32 btn = btn_wait();
if (prevent_sysmmc_boot || !(btn & BTN_POWER))
{ {
_free_launch_components(&ctxt); _free_launch_components(&ctxt);
goto error; // MUST stop here, because if user requests 'nogc' but it's not applied, their GC controller gets updated! goto error; // MUST stop here, because if user requests 'nogc' but it's not applied, their GC controller gets updated!