summaryrefslogtreecommitdiff
path: root/apps/games_menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/games_menu.c')
-rw-r--r--apps/games_menu.c33
1 files changed, 33 insertions, 0 deletions
diff --git a/apps/games_menu.c b/apps/games_menu.c
index 780c4b7415..16acd804ba 100644
--- a/apps/games_menu.c
+++ b/apps/games_menu.c
@@ -51,6 +51,35 @@ static bool wormlet(void)
51 return false; 51 return false;
52} 52}
53 53
54static bool flipit(void)
55{
56 if (plugin_load("/.rockbox/rocks/flipit.rock",NULL)==PLUGIN_USB_CONNECTED)
57 return true;
58 return false;
59}
60
61static bool othelo(void)
62{
63 if (plugin_load("/.rockbox/rocks/othelo.rock",NULL)==PLUGIN_USB_CONNECTED)
64 return true;
65 return false;
66}
67
68static bool sliding_puzzle(void)
69{
70 if (plugin_load("/.rockbox/rocks/sliding_puzzle.rock",
71 NULL)==PLUGIN_USB_CONNECTED)
72 return true;
73 return false;
74}
75
76static bool star(void)
77{
78 if (plugin_load("/.rockbox/rocks/star.rock",NULL)==PLUGIN_USB_CONNECTED)
79 return true;
80 return false;
81}
82
54bool games_menu(void) 83bool games_menu(void)
55{ 84{
56 int m; 85 int m;
@@ -60,6 +89,10 @@ bool games_menu(void)
60 { str(LANG_TETRIS), tetris }, 89 { str(LANG_TETRIS), tetris },
61 { str(LANG_SOKOBAN), sokoban }, 90 { str(LANG_SOKOBAN), sokoban },
62 { str(LANG_WORMLET), wormlet }, 91 { str(LANG_WORMLET), wormlet },
92 { str(LANG_FLIPIT), flipit },
93 { str(LANG_OTHELO), othelo },
94 { str(LANG_SLIDING_PUZZLE), sliding_puzzle },
95 { str(LANG_STAR), star },
63 }; 96 };
64 97
65 m=menu_init( items, sizeof items / sizeof(struct menu_items) ); 98 m=menu_init( items, sizeof items / sizeof(struct menu_items) );