I found a strange bug in all my homebrew in CIA format.
While in the homebrew, if I pres the home button the system opens the home menu, from here if I close the 3ds case and then open it again, both screens remain black and the system seems to be frozen.
It doesn't seems to be a problem in my code, but before opening an isuue on the ctrulib github I ask the devs of the forum to check it.
The problem happens with the following simple code too:
You can find attached the rsf file I used for the test (UniqueId 0xffff that I use to test pre release cias)
Maybe it isn't a ctrulib problem but only of my CFW version (it's RXTool, I know it's outdated, but I use it only to test my hoembrew in CIA format)
If you have time please test this simple homebrew and tell me if the problem happens with your CFW and ctrulib version.
Thanks in advance. NOP90
While in the homebrew, if I pres the home button the system opens the home menu, from here if I close the 3ds case and then open it again, both screens remain black and the system seems to be frozen.
It doesn't seems to be a problem in my code, but before opening an isuue on the ctrulib github I ask the devs of the forum to check it.
The problem happens with the following simple code too:
Code:
#include <stdio.h>
#include <3ds.h>
//----------------------------------------------------------------------------
int main(int argc, char **argv) {
//----------------------------------------------------------------------------
PrintConsole topScreen;
gfxInitDefault();
consoleInit(GFX_TOP, &topScreen);
consoleSelect(&topScreen);
printf("Press START to exit\n");
int i=0;
while(aptMainLoop()) {
gfxSwapBuffers();
gfxFlushBuffers();
gspWaitForVBlank();
hidScanInput();
u32 kDown = hidKeysDown();
if (kDown & KEY_START)
break; // break in order to return to hbmenu
printf("%i\n",i++);
}
gfxExit();
return 0;
}
You can find attached the rsf file I used for the test (UniqueId 0xffff that I use to test pre release cias)
Maybe it isn't a ctrulib problem but only of my CFW version (it's RXTool, I know it's outdated, but I use it only to test my hoembrew in CIA format)
If you have time please test this simple homebrew and tell me if the problem happens with your CFW and ctrulib version.
Thanks in advance. NOP90