diff --git a/apps/plugins/chessbox/chessbox.c b/apps/plugins/chessbox/chessbox.c index 5f67d44..7cda2cf 100644 --- a/apps/plugins/chessbox/chessbox.c +++ b/apps/plugins/chessbox/chessbox.c @@ -25,7 +25,12 @@ #ifdef HAVE_LCD_BITMAP +/* Remove Playback Control menu if we're running as an overlay + * since the audio buffer is taken. + */ +#if (MEMORYSIZE >= 8 || defined(SIMULATOR)) #include "lib/playback_control.h" +#endif #include "gnuchess.h" #include "opening.h" #include "chessbox_pgn.h" @@ -588,7 +593,10 @@ static int cb_menu(void) bool menu_quit = false; MENUITEM_STRINGLIST(menu,"Chessbox Menu",NULL,"New Game","Resume Game", - "Save Game", "Restore Game", "Playback Control", + "Save Game", "Restore Game", +#if (MEMORYSIZE >= 8 || defined(SIMULATOR)) + "Playback Control", +#endif "Quit"); while(!menu_quit) @@ -611,10 +619,14 @@ static int cb_menu(void) result = COMMAND_RESTORE; menu_quit = true; break; +#if (MEMORYSIZE >= 8 || defined(SIMULATOR)) case 4: playback_control(NULL); break; case 5: +#else + case 4: +#endif result = COMMAND_QUIT; menu_quit = true; break;