summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Hak <adiamas@rockbox.org>2003-06-30 04:36:57 +0000
committerRobert Hak <adiamas@rockbox.org>2003-06-30 04:36:57 +0000
commit9e53a9235afe5f358164c4bd388e0210c99fb8e2 (patch)
tree3b768f6e198bedd9beb4406b08001567df4c1e78
parentb76dca2df544f02587a9f4b582b47294d1e09b82 (diff)
downloadrockbox-9e53a9235afe5f358164c4bd388e0210c99fb8e2.tar.gz
rockbox-9e53a9235afe5f358164c4bd388e0210c99fb8e2.zip
lets actually set it so we can play the new games.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3789 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/games_menu.c33
-rw-r--r--apps/lang/english.lang20
2 files changed, 53 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) );
diff --git a/apps/lang/english.lang b/apps/lang/english.lang
index 9ca18b88ef..57bec0c656 100644
--- a/apps/lang/english.lang
+++ b/apps/lang/english.lang
@@ -1612,3 +1612,23 @@ id: LANG_REBOOT_NOW
1612desc: Do you want to reboot? 1612desc: Do you want to reboot?
1613eng: "Reboot now?" 1613eng: "Reboot now?"
1614new: 1614new:
1615
1616id: LANG_FLIPIT
1617desc: in the games menu
1618eng: "Flipit"
1619new:
1620
1621id: LANG_OTHELO
1622desc: in the games menu
1623eng: "Othelo"
1624new:
1625
1626id: LANG_SLIDING_PUZZLE
1627desc: in the games menu
1628eng: "Sliding Puzzle"
1629new:
1630
1631id: LANG_STAR
1632desc: in the games menu
1633eng: "Star"
1634new: