Wait for ntrboot buttons not to be held
This commit is contained in:
parent
f619dafff1
commit
d358df48a6
@ -49,3 +49,4 @@
|
|||||||
#define L_PAYLOAD_BUTTONS (BUTTON_R1 | BUTTON_A | BUTTON_START | BUTTON_SELECT)
|
#define L_PAYLOAD_BUTTONS (BUTTON_R1 | BUTTON_A | BUTTON_START | BUTTON_SELECT)
|
||||||
#define MENU_BUTTONS (DPAD_BUTTONS | BUTTON_A | BUTTON_START)
|
#define MENU_BUTTONS (DPAD_BUTTONS | BUTTON_A | BUTTON_START)
|
||||||
#define PIN_BUTTONS (BUTTON_A | BUTTON_B | BUTTON_X | BUTTON_Y | DPAD_BUTTONS | BUTTON_START | BUTTON_SELECT)
|
#define PIN_BUTTONS (BUTTON_A | BUTTON_B | BUTTON_X | BUTTON_Y | DPAD_BUTTONS | BUTTON_START | BUTTON_SELECT)
|
||||||
|
#define NTRBOOT_BUTTONS (BUTTON_START | BUTTON_SELECT | BUTTON_X)
|
||||||
|
@ -132,6 +132,7 @@ void main(int argc, char **argv, u32 magicWord)
|
|||||||
|
|
||||||
if(bootType == NTR && magicWord == 0xB002)
|
if(bootType == NTR && magicWord == 0xB002)
|
||||||
{
|
{
|
||||||
|
while(HID_PAD & NTRBOOT_BUTTONS);
|
||||||
loadHomebrewFirm(0);
|
loadHomebrewFirm(0);
|
||||||
mcuPowerOff();
|
mcuPowerOff();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user