mirror of
https://github.com/CTCaer/hekate
synced 2024-11-16 00:49:27 +00:00
Add TUI reload in case of missing bootloader files
This commit is contained in:
parent
e8fb6624c0
commit
0142ac1697
1 changed files with 10 additions and 0 deletions
|
@ -1319,6 +1319,15 @@ out:
|
|||
max77620_low_battery_monitor_config(true);
|
||||
}
|
||||
|
||||
void ipl_reload()
|
||||
{
|
||||
hw_reinit_workaround(false, 0);
|
||||
|
||||
// Reload hekate.
|
||||
void (*ipl_ptr)() = (void *)IPL_LOAD_ADDR;
|
||||
(*ipl_ptr)();
|
||||
}
|
||||
|
||||
static void _about()
|
||||
{
|
||||
static const char credits[] =
|
||||
|
@ -1462,6 +1471,7 @@ ment_t ment_top[] = {
|
|||
MDEF_MENU("Tools", &menu_tools),
|
||||
MDEF_MENU("Console info", &menu_cinfo),
|
||||
MDEF_CAPTION("---------------", 0xFF444444),
|
||||
MDEF_HANDLER("Reload", ipl_reload),
|
||||
MDEF_HANDLER("Reboot (Normal)", reboot_normal),
|
||||
MDEF_HANDLER("Reboot (RCM)", reboot_rcm),
|
||||
MDEF_HANDLER("Power off", power_off),
|
||||
|
|
Loading…
Reference in a new issue