memory fixes

This commit is contained in:
Thuc Chi Do committed 2025-08-11 05:50:48 -04:00
1 parent 4c93b9b726
commit 0502cffff9
1 file changed
+7 -4
+7 -4
View File
@@ -120,9 +120,7 @@ int main(int argc, char* argv[])
while (aptMainLoop())
{
hidScanInput();
gspWaitForVBlank();
gfxSwapBuffers();
// Your code goes here
u32 kDown = hidKeysDown();
if (kDown & KEY_START) {
@@ -134,11 +132,16 @@ int main(int argc, char* argv[])
gfxSwapBuffers();
// break; // break in order to return to hbmenu
}
gfxSet3D(false);
writePicToFBuff(gfxGetFramebuffer(GFX_TOP, GFX_LEFT, NULL, NULL), buf, 0, 0);
gfxFlushBuffers();
gspWaitForVBlank();
gfxSwapBuffers();
}
free(buf);
gfxExit();
return 0;
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.