Skip to content
This repository has been archived by the owner on Sep 29, 2021. It is now read-only.

Commit

Permalink
Display user-messages at the top screen
Browse files Browse the repository at this point in the history
Debug-related information goes to the bottom screen.
  • Loading branch information
phijor committed May 12, 2016
1 parent 1ffe6f1 commit ff09c42
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions 3DS/source/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,11 @@ int main(int argc, char **argv)
u32 wifi = 0;
if (R_FAILED(res = ACU_GetWifiStatus(&wifi))) {
util_presult("ACU_GetWifiStatus failed", res);
util_debug_printf("Did you enable Wifi?\n");
fprintf(stderr, "Did you enable Wifi?\n");
goto failure;
}
if (!wifi) {
util_debug_printf("Wifi disabled.\n");
fprintf(stderr, "Wifi disabled.\n");
goto failure;
}

Expand All @@ -98,7 +98,7 @@ int main(int argc, char **argv)
}

if (R_FAILED(res = ctrollerInit())) {
puts("Do you have a valid IP in\n '" CFG_FILE "'?");
fprintf(stderr, "Do you have a valid IP in\n '" CFG_FILE "'?");
goto failure;
}

Expand Down
3 changes: 2 additions & 1 deletion 3DS/source/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ PrintConsole debug;

void util_hang(Result res)
{
util_presult("Press START to exit.\n", res);
fprintf(stderr, "Press START to exit.\n");
util_debug_printf("Will exit with status 0x%08x.\n", res);
while (1) {
hidScanInput();

Expand Down

0 comments on commit ff09c42

Please sign in to comment.