summaryrefslogtreecommitdiff
path: root/apps/demo_menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/demo_menu.c')
-rw-r--r--apps/demo_menu.c81
1 files changed, 0 insertions, 81 deletions
diff --git a/apps/demo_menu.c b/apps/demo_menu.c
deleted file mode 100644
index be8e44522c..0000000000
--- a/apps/demo_menu.c
+++ /dev/null
@@ -1,81 +0,0 @@
1/***************************************************************************
2* __________ __ ___.
3* Open \______ \ ____ ____ | | _\_ |__ _______ ___
4* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7* \/ \/ \/ \/ \/
8* $Id$
9*
10* Copyright (C) 2002 Robert Hak
11*
12* All files in this archive are subject to the GNU General Public License.
13* See the file COPYING in the source tree root for full license agreement.
14*
15* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16* KIND, either express or implied.
17*
18****************************************************************************/
19#include "config.h"
20#include "options.h"
21
22#ifdef HAVE_LCD_BITMAP
23#ifdef USE_DEMOS
24
25#include <stdio.h>
26#include <stdbool.h>
27#include "menu.h"
28#include "demo_menu.h"
29#include "lang.h"
30#include "plugin.h"
31
32static bool bounce(void)
33{
34 if (plugin_load("/.rockbox/rocks/bounce.rock",NULL)==PLUGIN_USB_CONNECTED)
35 return true;
36 return false;
37}
38
39static bool snow(void)
40{
41 if (plugin_load("/.rockbox/rocks/snow.rock",NULL) == PLUGIN_USB_CONNECTED)
42 return true;
43 return false;
44}
45
46static bool cube(void)
47{
48 if (plugin_load("/.rockbox/rocks/cube.rock",NULL) == PLUGIN_USB_CONNECTED)
49 return true;
50 return false;
51}
52
53static bool oscillograph(void)
54{
55 if (plugin_load("/.rockbox/rocks/oscillograph.rock",NULL)==PLUGIN_USB_CONNECTED)
56 return true;
57 return false;
58}
59
60bool demo_menu(void)
61{
62 int m;
63 bool result;
64
65 struct menu_items items[] = {
66 { str(LANG_BOUNCE), bounce },
67 { str(LANG_SNOW), snow },
68 { str(LANG_OSCILLOGRAPH), oscillograph },
69 { str(LANG_CUBE), cube },
70 };
71
72 m=menu_init( items, sizeof items / sizeof(struct menu_items) );
73 result = menu_run(m);
74 menu_exit(m);
75
76 return result;
77}
78
79#endif
80#endif
81