add template and fix the stupid ahh

This commit is contained in:
neon443
2025-08-11 01:38:44 -04:00
parent de7ac1bacb
commit ff4c3f52ad
2 changed files with 37 additions and 3 deletions

33
source/main.c Normal file
View File

@@ -0,0 +1,33 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <3ds.h>
#define width 400
#define height 240
#define screenSize width * height * 2
#define bufSize screenSize * 2
int main(int argc, char* argv[])
{
gfxInitDefault();
consoleInit(GFX_TOP, NULL);
printf("Hello, world!\n");
// Main loop
while (aptMainLoop())
{
gspWaitForVBlank();
gfxSwapBuffers();
hidScanInput();
// Your code goes here
u32 kDown = hidKeysDown();
if (kDown & KEY_START)
break; // break in order to return to hbmenu
}
gfxExit();
return 0;
}