main: add installer_launch_hekate_payload (update.bin or reboot)

Made-with: Cursor
This commit is contained in:
2026-04-07 23:54:51 +02:00
parent 113542f7fb
commit db7d83304f

View File

@@ -189,6 +189,12 @@ static int file_exists(const char *path) {
return (f_stat(path, &fno) == FR_OK);
}
void installer_launch_hekate_payload(void) {
if (file_exists(PAYLOAD_PATH))
launch_payload(PAYLOAD_PATH);
power_set_state(POWER_OFF_REBOOT);
}
extern void pivot_stack(u32 stack_top);
void ipl_main(void) {