mirror of
https://github.com/ApacheThunder/ntr-hb-menu.git
synced 2025-06-19 03:35:32 -04:00

* No Icon graphic is now a seperate banner asset that loads when no icon is present. This allows using proper background behind valid banners that have alpha pixels. * Reorganized make files to allow building with custom arm7 code. * N-Card Autorun1.nds with NRIO.dldi added to bootstrap makefile. * bootstub disabled as it was causing some applications to hang on exit.
24 lines
497 B
C
24 lines
497 B
C
#include <nds.h>
|
|
|
|
void VcountHandler() { inputGetAndSend(); }
|
|
|
|
int main(void) {
|
|
readUserSettings();
|
|
ledBlink(0);
|
|
irqInit();
|
|
initClockIRQ();
|
|
fifoInit();
|
|
touchInit();
|
|
SetYtrigger(80);
|
|
installSystemFIFO();
|
|
irqSet(IRQ_VCOUNT, VcountHandler);
|
|
irqEnable(IRQ_VCOUNT);
|
|
if (REG_SNDEXTCNT != 0) {
|
|
i2cWriteRegister(0x4A, 0x12, 0x00); // Press power-button for auto-reset
|
|
i2cWriteRegister(0x4A, 0x70, 0x01); // Bootflag = Warmboot/SkipHealthSafety
|
|
}
|
|
while(1)swiWaitForVBlank();
|
|
return 0;
|
|
}
|
|
|