mirror of
https://github.com/wavemotion-dave/NINTV-DS.git
synced 2025-06-18 13:55:33 -04:00
41 lines
619 B
C++
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;
|
|
}
|
|
|