mirror of
https://github.com/CTCaer/hekate
synced 2024-12-22 19:31:12 +00:00
Merge pull request #500 from AuroraWright/master
hos: Prevent booting emummc with failed emummc patching
This commit is contained in:
commit
9da0e0358b
1 changed files with 7 additions and 4 deletions
|
@ -949,11 +949,14 @@ int hos_launch(ini_sec_t *cfg)
|
||||||
{
|
{
|
||||||
EHPRINTFARGS("Failed to apply '%s'!", unappliedPatch);
|
EHPRINTFARGS("Failed to apply '%s'!", unappliedPatch);
|
||||||
|
|
||||||
gfx_puts("\nPress POWER to continue.\nPress VOL to go to the menu.\n");
|
bool emmc_patch_failed = !strcmp(unappliedPatch, "emummc");
|
||||||
display_backlight_brightness(h_cfg.backlight, 1000);
|
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);
|
||||||
|
}
|
||||||
|
|
||||||
u32 btn = btn_wait();
|
if (emmc_patch_failed || !(btn_wait() & BTN_POWER))
|
||||||
if (!(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!
|
||||||
|
|
Loading…
Reference in a new issue