mirror of
https://github.com/CTCaer/hekate.git
synced 2024-11-26 11:42:09 +00:00
hekate: Better error prints for failed launching
This commit is contained in:
parent
75c6b01696
commit
d49a40b0da
1 changed files with 8 additions and 3 deletions
|
@ -216,6 +216,7 @@ int launch_payload(char *path, bool update)
|
||||||
FIL fp;
|
FIL fp;
|
||||||
if (f_open(&fp, path, FA_READ))
|
if (f_open(&fp, path, FA_READ))
|
||||||
{
|
{
|
||||||
|
gfx_con.mute = 0;
|
||||||
EPRINTFARGS("Payload file is missing!\n(%s)", path);
|
EPRINTFARGS("Payload file is missing!\n(%s)", path);
|
||||||
|
|
||||||
goto out;
|
goto out;
|
||||||
|
@ -1030,6 +1031,7 @@ skip_list:
|
||||||
{
|
{
|
||||||
launch_payload(payload_path, false);
|
launch_payload(payload_path, false);
|
||||||
free(payload_path);
|
free(payload_path);
|
||||||
|
goto payload_error;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -1045,16 +1047,19 @@ skip_list:
|
||||||
check_sept(cfg_sec);
|
check_sept(cfg_sec);
|
||||||
hos_launch(cfg_sec);
|
hos_launch(cfg_sec);
|
||||||
|
|
||||||
|
wrong_emupath:
|
||||||
|
EPRINTF("\nFailed to launch HOS!");
|
||||||
|
|
||||||
if (emummc_path || b_cfg.boot_cfg & BOOT_CFG_TO_EMUMMC)
|
if (emummc_path || b_cfg.boot_cfg & BOOT_CFG_TO_EMUMMC)
|
||||||
{
|
{
|
||||||
sd_mount();
|
sd_mount();
|
||||||
emummc_load_cfg();
|
emummc_load_cfg();
|
||||||
}
|
}
|
||||||
|
|
||||||
wrong_emupath:
|
payload_error:
|
||||||
display_backlight_brightness(h_cfg.backlight, 1000);
|
gfx_con.mute = 0;
|
||||||
EPRINTF("\nFailed to launch HOS!");
|
|
||||||
gfx_printf("\nPress any key...\n");
|
gfx_printf("\nPress any key...\n");
|
||||||
|
display_backlight_brightness(h_cfg.backlight, 1000);
|
||||||
msleep(500);
|
msleep(500);
|
||||||
btn_wait();
|
btn_wait();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue