mirror of
https://github.com/ApacheThunder/XuluMenu.git
synced 2025-06-18 19:45:45 -04:00

* 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.
34 lines
422 B
C
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;
|
|
}
|
|
|