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.c29
1 files changed, 21 insertions, 8 deletions
diff --git a/apps/games_menu.c b/apps/games_menu.c
index 0c37203f4e..780c4b7415 100644
--- a/apps/games_menu.c
+++ b/apps/games_menu.c
@@ -25,18 +25,31 @@
25 25
26#include <stdio.h> 26#include <stdio.h>
27#include <stdbool.h> 27#include <stdbool.h>
28#include "lcd.h"
29#include "menu.h" 28#include "menu.h"
30#include "games_menu.h" 29#include "games_menu.h"
31#include "button.h"
32#include "kernel.h"
33#include "sprintf.h"
34
35#include "sokoban.h"
36#include "wormlet.h"
37#include "lang.h" 30#include "lang.h"
31#include "plugin.h"
38 32
39extern bool tetris(void); 33static bool tetris(void)
34{
35 if (plugin_load("/.rockbox/rocks/tetris.rock",NULL)==PLUGIN_USB_CONNECTED)
36 return true;
37 return false;
38}
39
40static bool sokoban(void)
41{
42 if (plugin_load("/.rockbox/rocks/sokoban.rock",NULL)==PLUGIN_USB_CONNECTED)
43 return true;
44 return false;
45}
46
47static bool wormlet(void)
48{
49 if (plugin_load("/.rockbox/rocks/wormlet.rock",NULL)==PLUGIN_USB_CONNECTED)
50 return true;
51 return false;
52}
40 53
41bool games_menu(void) 54bool games_menu(void)
42{ 55{