base template of a 3DS game

This commit is contained in:
Zy 2024-09-24 17:53:04 +02:00
commit e67f45bea2
10 changed files with 676 additions and 0 deletions

25
source/main.cpp Normal file
View file

@ -0,0 +1,25 @@
#include <3ds.h>
#include <stdio.h>
int main(int argc, char **argv) {
gfxInitDefault();
consoleInit(GFX_TOP, NULL);
printf("Test Code::Blocks project!");
printf("\x1b[20;15HPress Start to exit.");
while(aptMainLoop()) {
gspWaitForVBlank();
hidScanInput();
if(hidKeysDown() & KEY_START)
break;
gfxFlushBuffers();
gfxSwapBuffers();
}
gfxExit();
return 0;
}