This commit is contained in:
2017-08-02 08:07:58 -04:00
parent de719f9f01
commit f83ea1f6c4
5 changed files with 179 additions and 0 deletions

40
source/main.c Normal file
View File

@@ -0,0 +1,40 @@
#include <stdlib.h>
#include "fs.h"
#include "themes.h"
int init_services(void)
{
gfxInitDefault();
cfguInit();
srvInit();
hidInit();
fsInit();
ptmSysmInit();
open_archives();
return 0;
}
int de_init_services(void)
{
gfxExit();
cfguExit();
srvExit();
hidExit();
fsExit();
ptmSysmExit();
// close_archives(); // TODO: Implement
return 0;
}
int main(void)
{
init_services();
int theme_count = get_number_entries("/Themes");
theme** theme_list = calloc(theme_count, sizeof(theme*));
free(theme_list);
de_init_services();
return 0;
}