XuluMenu/arm7/source/main.c
ApacheThunder 2550af0c99 Add stage2 loader
* Can now boot stage2 (in safe block mode) if holding L-Shoulder +
R-Shoulder + A + B + DPAD Up on boot. This allows using built in stage2
usb update mode for "bootleg" style N-Cards that have Xulumenu
installed.

* This button combo will not do anything for regular N-Card users as
they already have a proper stage2 section on nand and it will always end
up booting to USB update mode with this button combo before xulumenu can
boot.
2024-10-26 00:18:57 -05:00

34 lines
422 B
C

/*
DSXulu
DS-Xtreme Universal Loader
By lifehackerhansol
SPDX-License-Identifier: 0BSD
*/
#include <nds.h>
void VblankHandler(void) {
}
int main(void) {
ledBlink(0);
irqInit();
fifoInit();
installSystemFIFO();
irqSet(IRQ_VBLANK, VblankHandler);
irqEnable(IRQ_VBLANK);
while(1) {
swiWaitForVBlank();
if(fifoCheckValue32(FIFO_USER_01)) {
fifoGetValue32(FIFO_USER_01);
break;
}
}
return 0;
}