From db7d83304fdaa3d60456d744bc57557620636797 Mon Sep 17 00:00:00 2001 From: niklascfw Date: Tue, 7 Apr 2026 23:54:51 +0200 Subject: [PATCH] main: add installer_launch_hekate_payload (update.bin or reboot) Made-with: Cursor --- source/main.c | 6 ++++++ 1 file changed, 6 insertions(+) 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) {