Archos and other low mem don't have playback in chessbox, so don't show the menu there

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20112 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Thomas Martitz 2009-02-26 17:46:01 +00:00
parent 15dbde1ab7
commit bb45f0ea6c

View file

@ -25,7 +25,10 @@
#ifdef HAVE_LCD_BITMAP #ifdef HAVE_LCD_BITMAP
#if (MEMORYSIZE <= 8) && !defined(SIMULATOR) /* Lowmem doesn't have playback in chessbox */
#include "lib/playback_control.h" #include "lib/playback_control.h"
#endif
#include "gnuchess.h" #include "gnuchess.h"
#include "opening.h" #include "opening.h"
#include "chessbox_pgn.h" #include "chessbox_pgn.h"
@ -588,7 +591,10 @@ static int cb_menu(void)
bool menu_quit = false; bool menu_quit = false;
MENUITEM_STRINGLIST(menu,"Chessbox Menu",NULL,"New Game","Resume Game", 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) /* Lowmem doesn't have playback in chessbox */
"Playback Control",
#endif
"Quit"); "Quit");
while(!menu_quit) while(!menu_quit)
@ -612,9 +618,11 @@ static int cb_menu(void)
menu_quit = true; menu_quit = true;
break; break;
case 4: case 4:
#if (MEMORYSIZE <= 8) && !defined(SIMULATOR) /* Lowmem doesn't have playback in chessbox */
playback_control(NULL); playback_control(NULL);
break; break;
case 5: case 5:
#endif
result = COMMAND_QUIT; result = COMMAND_QUIT;
menu_quit = true; menu_quit = true;
break; break;