summaryrefslogtreecommitdiff
path: root/apps/plugins/chessbox/chessbox.c
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/chessbox/chessbox.c
parent15dbde1ab76cebd553e278a144e3e56d3b1f39d4 (diff)
downloadrockbox-bb45f0ea6c7591854e46fb357493c7fc9d71d0a8.zip
rockbox-bb45f0ea6c7591854e46fb357493c7fc9d71d0a8.tar.gz
rockbox-bb45f0ea6c7591854e46fb357493c7fc9d71d0a8.tar.bz2
rockbox-bb45f0ea6c7591854e46fb357493c7fc9d71d0a8.tar.xz
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/chessbox/chessbox.c')
-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 5f67d44..94b829b 100644
--- a/apps/plugins/chessbox/chessbox.c
+++ b/apps/plugins/chessbox/chessbox.c
@@ -25,7 +25,10 @@
#ifdef HAVE_LCD_BITMAP
+#if (MEMORYSIZE <= 8) && !defined(SIMULATOR) /* Lowmem doesn't have playback in chessbox */
#include "lib/playback_control.h"
+#endif
+
#include "gnuchess.h"
#include "opening.h"
#include "chessbox_pgn.h"
@@ -588,8 +591,11 @@ 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",
- "Quit");
+ "Save Game", "Restore Game",
+#if (MEMORYSIZE <= 8) && !defined(SIMULATOR) /* Lowmem doesn't have playback in chessbox */
+ "Playback Control",
+#endif
+ "Quit");
while(!menu_quit)
{
@@ -612,9 +618,11 @@ static int cb_menu(void)
menu_quit = true;
break;
case 4:
+#if (MEMORYSIZE <= 8) && !defined(SIMULATOR) /* Lowmem doesn't have playback in chessbox */
playback_control(NULL);
break;
case 5:
+#endif
result = COMMAND_QUIT;
menu_quit = true;
break;