Better 3DS debug logging and fix console output
Was using the wrong screen
This commit is contained in:
parent
f5b3b2e0d0
commit
10c4831160
1 changed files with 19 additions and 19 deletions
|
@ -15,7 +15,11 @@ bool Backend_Init(void (*drag_and_drop_callback)(const char *path), void (*windo
|
||||||
hidInit();
|
hidInit();
|
||||||
|
|
||||||
gfxInitDefault();
|
gfxInitDefault();
|
||||||
consoleInit(GFX_TOP, NULL);
|
consoleInit(GFX_BOTTOM, NULL);
|
||||||
|
|
||||||
|
// gspLcdInit();
|
||||||
|
|
||||||
|
// GSPLCD_PowerOffBacklight(GSPLCD_SCREEN_BOTTOM);
|
||||||
|
|
||||||
Result rc = romfsInit();
|
Result rc = romfsInit();
|
||||||
|
|
||||||
|
@ -35,6 +39,8 @@ void Backend_Deinit(void)
|
||||||
{
|
{
|
||||||
romfsExit();
|
romfsExit();
|
||||||
|
|
||||||
|
// gspLcdExit();
|
||||||
|
|
||||||
gfxExit();
|
gfxExit();
|
||||||
|
|
||||||
hidExit();
|
hidExit();
|
||||||
|
@ -111,28 +117,22 @@ void Backend_ShowMessageBox(const char *title, const char *message)
|
||||||
|
|
||||||
ATTRIBUTE_FORMAT_PRINTF(1, 2) void Backend_PrintError(const char *format, ...)
|
ATTRIBUTE_FORMAT_PRINTF(1, 2) void Backend_PrintError(const char *format, ...)
|
||||||
{
|
{
|
||||||
char message_buffer[0x100];
|
va_list argumentList;
|
||||||
|
va_start(argumentList, format);
|
||||||
va_list argument_list;
|
fputs("ERROR: ", stderr);
|
||||||
va_start(argument_list, format);
|
vfprintf(stderr, format, argumentList);
|
||||||
vsnprintf(message_buffer, sizeof(message_buffer), format, argument_list);
|
fputc('\n', stderr);
|
||||||
va_end(argument_list);
|
va_end(argumentList);
|
||||||
|
|
||||||
printf("ERROR:");
|
|
||||||
printf(message_buffer);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ATTRIBUTE_FORMAT_PRINTF(1, 2) void Backend_PrintInfo(const char *format, ...)
|
ATTRIBUTE_FORMAT_PRINTF(1, 2) void Backend_PrintInfo(const char *format, ...)
|
||||||
{
|
{
|
||||||
char message_buffer[0x100];
|
va_list argumentList;
|
||||||
|
va_start(argumentList, format);
|
||||||
va_list argument_list;
|
fputs("INFO: ", stderr);
|
||||||
va_start(argument_list, format);
|
vfprintf(stderr, format, argumentList);
|
||||||
vsnprintf(message_buffer, sizeof(message_buffer), format, argument_list);
|
fputc('\n', stderr);
|
||||||
va_end(argument_list);
|
va_end(argumentList);
|
||||||
|
|
||||||
printf("INFO:");
|
|
||||||
printf(message_buffer);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned long Backend_GetTicks(void)
|
unsigned long Backend_GetTicks(void)
|
||||||
|
|
Loading…
Add table
Reference in a new issue