Skip to content

Commit

Permalink
tiny change
Browse files Browse the repository at this point in the history
  • Loading branch information
jason0597 committed Dec 11, 2017
1 parent b5c4b5e commit 7c5a8bf
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions source/menu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,7 @@ void menu_lvl2(Flashcart* cart, bool isDevMode)
DrawHeader(TOP_SCREEN, cart->getName(), ((SCREENWIDTH - (strlen(cart->getName()) * FONT_WIDTH)) / 2));
int menu_sel = 0;

bool breakCondition = false;
while (!breakCondition)
while (true)
{
scanKeys();
DrawString(TOP_SCREEN, FONT_WIDTH, (2 * FONT_HEIGHT), (menu_sel == 0) ? COLOR_RED : COLOR_WHITE, "Inject FIRM"); //0
Expand Down Expand Up @@ -157,11 +156,10 @@ void menu_lvl2(Flashcart* cart, bool isDevMode)
break;

case 0:
DrawString(TOP_SCREEN, (1 * FONT_WIDTH), (15 * FONT_HEIGHT), COLOR_GREEN, "Success! Press <B> to return to main menu");
WaitPress(KEY_B);
DrawString(TOP_SCREEN, (1 * FONT_WIDTH), (15 * FONT_HEIGHT), COLOR_GREEN, "Success! Press <A> to return to main menu");
WaitPress(KEY_A);
ClearScreen(TOP_SCREEN, COLOR_BLACK);
ClearScreen(BOTTOM_SCREEN, COLOR_BLACK);
breakCondition = true;
break;
}
}
Expand Down Expand Up @@ -234,4 +232,4 @@ void d0k3_buttoncombo_print_chars(int collumn, int row, u16 color, char characte
DrawCharacter(TOP_SCREEN, character, collumn, row, color);
collumn += FONT_WIDTH;
DrawCharacter(TOP_SCREEN, '>', collumn, row, color);
}
}

0 comments on commit 7c5a8bf

Please sign in to comment.