Skip to content

Commit

Permalink
Fixed bug.
Browse files Browse the repository at this point in the history
When a user tries to exit when the error screen is open, it shows the dialog to save or discard.
  • Loading branch information
Jpe230 committed Jun 22, 2018
1 parent 5a8063f commit 7adb454
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions source/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,9 @@ int main(int argc, char **argv){
selectSlotMenu(slot);
}

if(currentState <= 0){
if (kDown & KEY_PLUS) break;
}
if(currentState != 0){
if (kDown & KEY_B) BackButton();
if (kDown & KEY_Y) RupeeKey();
Expand All @@ -527,6 +530,8 @@ int main(int argc, char **argv){
break;
}
}



}

Expand Down

0 comments on commit 7adb454

Please sign in to comment.