Games in Info menu, if enabled

This commit is contained in:
Scott Lahteine
2019-06-15 16:57:20 -05:00
parent 4c872a01f2
commit 9131b11944
2 changed files with 24 additions and 14 deletions

View File

@@ -28,6 +28,10 @@
#if HAS_LCD_MENU && ENABLED(LCD_INFO_MENU)
#if HAS_GAMES
#include "game/game.h"
#endif
#include "menu.h"
// #include "../../module/motion.h"
// #include "../../module/planner.h"
@@ -220,6 +224,21 @@ void menu_info() {
#if ENABLED(PRINTCOUNTER)
MENU_ITEM(submenu, MSG_INFO_STATS_MENU, menu_info_stats); // Printer Stats >
#endif
#if HAS_GAMES
MENU_ITEM(submenu, "Game", (
#if HAS_GAME_MENU
menu_game
#elif ENABLED(MARLIN_BRICKOUT)
brickout.enter_game
#elif ENABLED(MARLIN_INVADERS)
invaders.enter_game
#elif ENABLED(MARLIN_SNAKE)
snake.enter_game
#elif ENABLED(MARLIN_MAZE)
maze.enter_game
#endif
));
#endif
END_MENU();
}