2014-12-26 02:31:59 +01:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <3ds.h>
|
|
|
|
|
|
|
|
|
|
|
|
int main(int argc, char** argv)
|
|
|
|
{
|
|
|
|
// Initialize services
|
2015-01-03 01:06:22 +01:00
|
|
|
gfxInitDefault();
|
2015-11-11 21:13:31 +01:00
|
|
|
cfguInit();
|
2014-12-26 02:31:59 +01:00
|
|
|
|
|
|
|
|
|
|
|
u8 language = 0;
|
2014-12-26 02:46:38 +01:00
|
|
|
Result res;
|
2014-12-26 02:31:59 +01:00
|
|
|
|
|
|
|
// Init console for text output
|
|
|
|
consoleInit(GFX_BOTTOM, NULL);
|
|
|
|
|
|
|
|
// Read the language field from the config savegame.
|
2014-12-29 22:46:59 +01:00
|
|
|
res = CFGU_GetSystemLanguage(&language);
|
|
|
|
|
|
|
|
// Print return value and language code
|
|
|
|
printf(" Result: 0x%x\n", (int)res);
|
|
|
|
printf("Language code: %d", (int)language);
|
2014-12-26 02:31:59 +01:00
|
|
|
|
|
|
|
|
|
|
|
// Main loop
|
|
|
|
while (aptMainLoop())
|
|
|
|
{
|
|
|
|
hidScanInput();
|
|
|
|
|
|
|
|
u32 kDown = hidKeysDown();
|
|
|
|
if (kDown & KEY_START)
|
|
|
|
break; // break in order to return to hbmenu
|
|
|
|
|
|
|
|
// Flush and swap framebuffers
|
|
|
|
gfxFlushBuffers();
|
|
|
|
gfxSwapBuffers();
|
|
|
|
gspWaitForVBlank();
|
|
|
|
}
|
|
|
|
|
|
|
|
// Exit services
|
2015-11-11 21:13:31 +01:00
|
|
|
cfguExit();
|
2014-12-26 02:31:59 +01:00
|
|
|
gfxExit();
|
|
|
|
return 0;
|
|
|
|
}
|