summaryrefslogtreecommitdiff
path: root/apps/plugins
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2009-02-26 17:46:01 +0000
committerThomas Martitz <kugel@rockbox.org>2009-02-26 17:46:01 +0000
commitbb45f0ea6c7591854e46fb357493c7fc9d71d0a8 (patch)
tree3087e6c6dfa9691c97fbe81eb5625f56748b9443 /apps/plugins
parent15dbde1ab76cebd553e278a144e3e56d3b1f39d4 (diff)
downloadrockbox-bb45f0ea6c7591854e46fb357493c7fc9d71d0a8.tar.gz
rockbox-bb45f0ea6c7591854e46fb357493c7fc9d71d0a8.zip
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
Diffstat (limited to 'apps/plugins')
-rw-r--r--apps/plugins/chessbox/chessbox.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/apps/plugins/chessbox/chessbox.c b/apps/plugins/chessbox/chessbox.c
index 5f67d44808..94b829b1c8 100644
--- a/apps/plugins/chessbox/chessbox.c
+++ b/apps/plugins/chessbox/chessbox.c
@@ -25,7 +25,10 @@
25 25
26#ifdef HAVE_LCD_BITMAP 26#ifdef HAVE_LCD_BITMAP
27 27
28#if (MEMORYSIZE <= 8) && !defined(SIMULATOR) /* Lowmem doesn't have playback in chessbox */
28#include "lib/playback_control.h" 29#include "lib/playback_control.h"
30#endif
31
29#include "gnuchess.h" 32#include "gnuchess.h"
30#include "opening.h" 33#include "opening.h"
31#include "chessbox_pgn.h" 34#include "chessbox_pgn.h"
@@ -588,8 +591,11 @@ static int cb_menu(void)
588 bool menu_quit = false; 591 bool menu_quit = false;
589 592
590 MENUITEM_STRINGLIST(menu,"Chessbox Menu",NULL,"New Game","Resume Game", 593 MENUITEM_STRINGLIST(menu,"Chessbox Menu",NULL,"New Game","Resume Game",
591 "Save Game", "Restore Game", "Playback Control", 594 "Save Game", "Restore Game",
592 "Quit"); 595#if (MEMORYSIZE <= 8) && !defined(SIMULATOR) /* Lowmem doesn't have playback in chessbox */
596 "Playback Control",
597#endif
598 "Quit");
593 599
594 while(!menu_quit) 600 while(!menu_quit)
595 { 601 {
@@ -612,9 +618,11 @@ static int cb_menu(void)
612 menu_quit = true; 618 menu_quit = true;
613 break; 619 break;
614 case 4: 620 case 4:
621#if (MEMORYSIZE <= 8) && !defined(SIMULATOR) /* Lowmem doesn't have playback in chessbox */
615 playback_control(NULL); 622 playback_control(NULL);
616 break; 623 break;
617 case 5: 624 case 5:
625#endif
618 result = COMMAND_QUIT; 626 result = COMMAND_QUIT;
619 menu_quit = true; 627 menu_quit = true;
620 break; 628 break;