main: add installer_launch_hekate_payload (update.bin or reboot)
Made-with: Cursor
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user