MULTITHREADED FOR EPICNESSSSSS
This commit is contained in:
@@ -26,7 +26,7 @@ static int OFFSET_X = 5;
|
||||
* menu: A pointer to the menu grid.
|
||||
* game: The game you want to launch.
|
||||
*/
|
||||
static void launch_game(rooster *menu, const game game) {
|
||||
static void launch_game(const game game) {
|
||||
switch (game) {
|
||||
case GAME_MAZE_RUNNER:
|
||||
maze_runner();
|
||||
@@ -131,12 +131,13 @@ static int navigate_menu(rooster *menu) {
|
||||
menu_move(1);
|
||||
break;
|
||||
case KEY_ENTER:
|
||||
case '\n':
|
||||
case 'f':
|
||||
case 'F':
|
||||
if (SELECTED_GAME == GAME_QUIT) {
|
||||
return 1;
|
||||
}
|
||||
launch_game(menu, SELECTED_GAME);
|
||||
launch_game(SELECTED_GAME);
|
||||
break;
|
||||
case KEY_BACKSPACE:
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user