From 9e53a9235afe5f358164c4bd388e0210c99fb8e2 Mon Sep 17 00:00:00 2001 From: Robert Hak Date: Mon, 30 Jun 2003 04:36:57 +0000 Subject: 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 --- apps/games_menu.c | 33 +++++++++++++++++++++++++++++++++ apps/lang/english.lang | 20 ++++++++++++++++++++ 2 files changed, 53 insertions(+) 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) return false; } +static bool flipit(void) +{ + if (plugin_load("/.rockbox/rocks/flipit.rock",NULL)==PLUGIN_USB_CONNECTED) + return true; + return false; +} + +static bool othelo(void) +{ + if (plugin_load("/.rockbox/rocks/othelo.rock",NULL)==PLUGIN_USB_CONNECTED) + return true; + return false; +} + +static bool sliding_puzzle(void) +{ + if (plugin_load("/.rockbox/rocks/sliding_puzzle.rock", + NULL)==PLUGIN_USB_CONNECTED) + return true; + return false; +} + +static bool star(void) +{ + if (plugin_load("/.rockbox/rocks/star.rock",NULL)==PLUGIN_USB_CONNECTED) + return true; + return false; +} + bool games_menu(void) { int m; @@ -60,6 +89,10 @@ bool games_menu(void) { str(LANG_TETRIS), tetris }, { str(LANG_SOKOBAN), sokoban }, { str(LANG_WORMLET), wormlet }, + { str(LANG_FLIPIT), flipit }, + { str(LANG_OTHELO), othelo }, + { str(LANG_SLIDING_PUZZLE), sliding_puzzle }, + { str(LANG_STAR), star }, }; 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 desc: Do you want to reboot? eng: "Reboot now?" new: + +id: LANG_FLIPIT +desc: in the games menu +eng: "Flipit" +new: + +id: LANG_OTHELO +desc: in the games menu +eng: "Othelo" +new: + +id: LANG_SLIDING_PUZZLE +desc: in the games menu +eng: "Sliding Puzzle" +new: + +id: LANG_STAR +desc: in the games menu +eng: "Star" +new: -- cgit v1.2.3