1
0
Fork 0
mirror of https://github.com/CTCaer/hekate.git synced 2024-12-23 08:32:04 +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);
bool prevent_sysmmc_boot = false;
if (!strcmp(unappliedPatch, "emummc") && ctxt.emummc_forced)
prevent_sysmmc_boot = true;
if (prevent_sysmmc_boot)
gfx_puts("\nPress POWER or VOL to go to the menu.\n");
else
bool emmc_patch_failed = !strcmp(unappliedPatch, "emummc");
if (!emmc_patch_failed)
{
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);
u32 btn = btn_wait();
if (prevent_sysmmc_boot || !(btn & BTN_POWER))
if (emmc_patch_failed || !(btn_wait() & 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!