Skip to content

Commit

Permalink
fix exit handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Stary2001 committed Feb 12, 2017
1 parent b317d9e commit 82c5a42
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions source/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,19 +95,13 @@ int main()

if(err)
{
printf("An error occured! press START to exit!\n");
while (aptMainLoop())
{
gspWaitForVBlank();
hidScanInput();

u32 kDown = hidKeysDown();
if (kDown & KEY_START)
break;
}
printf("An error occured! Press START to exit!\n");
}
else
{
printf("Press HOME for use with NTR-Mode3, or START to exit!\n");
}

printf("Press HOME, or START to exit!\n");
while (aptMainLoop())
{
gspWaitForVBlank();
Expand Down

0 comments on commit 82c5a42

Please sign in to comment.