NINTV-DS/arm9/source/main.cpp
2021-09-02 17:32:31 -04:00

41 lines
619 B
C++

#include <nds.h>
#include <fat.h>
#include <stdio.h>
#include "ds_tools.h"
#include "clickNoQuit_wav.h"
#include "clickQuit_wav.h"
int main(int argc, char **argv)
{
// Init sound
consoleDemoInit();
soundEnable();
lcdMainOnTop();
// Init Fat
if (!fatInitDefault())
{
iprintf("Unable to initialize libfat!\n");
return -1;
}
// Init Timer
dsInitTimer();
// Init sound FIFO
dsInstallSoundEmuFIFO();
// Setup the main screen handling
dsInitScreenMain();
// Main loop of emulation
dsMainLoop();
// Free memory to be correct
dsFreeEmu();
return 0;
}