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
This commit is contained in:
parent
b76dca2df5
commit
9e53a9235a
2 changed files with 53 additions and 0 deletions
|
@ -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) );
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue