00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #include <nds.h>
00022 #include <stdio.h>
00023 #include <malloc.h>
00024 #include <fat.h>
00025 #include <unistd.h>
00026 #include <maxmod9.h>
00027
00028 #include "efs_lib.h"
00029
00030 #include <string>
00031 #include <vector>
00032 #include "xmlparser.h"
00033 #include "screenshandler.h"
00034 #include "mainscreenhandler.h"
00035 #include "subscreenhandler.h"
00036 #include "soundhandler.h"
00037 #include "dsmemorizer.h"
00038
00039 int main (void)
00040 {
00041 fatInitDefault();
00042 if (EFS_Init (EFS_AND_FAT | EFS_DEFAULT_DEVICE, NULL))
00043 {
00044 DSMemorizer dsmemorizer;
00045 dsmemorizer.Init();
00046 }
00047 else
00048 {
00049 iprintf ("EFS init error!\n");
00050 }
00051 while (1)
00052 {
00053 swiWaitForVBlank ();
00054 }
00055
00056 return 0;
00057 }
00058