init: main *

From 3ds template: https://github.com/TricksterGuy/3ds-template
This commit is contained in:
frzysk 2024-10-04 19:07:54 +03:00 committed by Zy
commit 04840890c7
10 changed files with 731 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;
}