ntr-hb-menu/arm7/source/main.c
ApacheThunder 3514acacee Improve Icon UI
* 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.
2024-05-04 14:50:07 -05:00

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;
}