Add reboot normally option, hide reboot to rcm on mariko
On mariko, rebooting normally will bypass fuses
This commit is contained in:
@@ -9,17 +9,24 @@
|
||||
#include "../gfx/menu.h"
|
||||
#include "../hid/hid.h"
|
||||
#include "../fs/fsutils.h"
|
||||
#include "../config.h"
|
||||
|
||||
extern hekate_config h_cfg;
|
||||
|
||||
extern int launch_payload(char *path);
|
||||
|
||||
void ALWAYS_INLINE power_off(){
|
||||
power_set_state(POWER_OFF);
|
||||
power_set_state(POWER_OFF_RESET);
|
||||
}
|
||||
|
||||
void ALWAYS_INLINE reboot_rcm(){
|
||||
power_set_state(REBOOT_RCM);
|
||||
}
|
||||
|
||||
void ALWAYS_INLINE reboot_normal(){
|
||||
power_set_state((h_cfg.t210b01) ? REBOOT_BYPASS_FUSES : POWER_OFF_REBOOT);
|
||||
}
|
||||
|
||||
void RebootToPayloadOrRcm(){
|
||||
if (FileExists("sd:/atmosphere/reboot_payload.bin"))
|
||||
launch_payload("sd:/atmosphere/reboot_payload.bin");
|
||||
|
||||
@@ -11,4 +11,5 @@ void RebootToPayloadOrRcm();
|
||||
char *ShowKeyboard(const char *toEdit, u8 alwaysRet);
|
||||
|
||||
void power_off();
|
||||
void reboot_rcm();
|
||||
void reboot_rcm();
|
||||
void reboot_normal();
|
||||
Reference in New Issue
Block a user