diff --git a/source/main.c b/source/main.c index edf28c6..56f3f88 100644 --- a/source/main.c +++ b/source/main.c @@ -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) {