summaryrefslogtreecommitdiff
path: root/apps/plugins
diff options
context:
space:
mode:
authorMarcoen Hirschberg <marcoen@gmail.com>2006-08-11 12:48:36 +0000
committerMarcoen Hirschberg <marcoen@gmail.com>2006-08-11 12:48:36 +0000
commitd24ed9987b54c16fd73087cf01c27bafcf03dd1c (patch)
treef02b472300bc39fa499e1d5135499aa4f942d001 /apps/plugins
parented70da26bd02ad50b9a7e4d1297cb4e7e43be6d4 (diff)
downloadrockbox-d24ed9987b54c16fd73087cf01c27bafcf03dd1c.zip
rockbox-d24ed9987b54c16fd73087cf01c27bafcf03dd1c.tar.gz
rockbox-d24ed9987b54c16fd73087cf01c27bafcf03dd1c.tar.bz2
rockbox-d24ed9987b54c16fd73087cf01c27bafcf03dd1c.tar.xz
'no voice' is -1 not 0 and menu_items does have a pointer
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10527 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins')
-rw-r--r--apps/plugins/jpeg.c28
-rw-r--r--apps/plugins/lib/playback_control.c14
-rw-r--r--apps/plugins/pacbox/pacbox.c42
-rw-r--r--apps/plugins/rockboy/menu.c28
-rw-r--r--apps/plugins/wormlet.c298
5 files changed, 205 insertions, 205 deletions
diff --git a/apps/plugins/jpeg.c b/apps/plugins/jpeg.c
index 5e221fe..dfc1986 100644
--- a/apps/plugins/jpeg.c
+++ b/apps/plugins/jpeg.c
@@ -2097,22 +2097,22 @@ int show_menu(void) /* return 1 to quit */
{ "Return", NULL },
};
static const struct opt_items slideshow[2] = {
- {"Disable",0},
- {"Enable",0},
+ { "Disable", -1 },
+ { "Enable", -1 },
};
static const struct opt_items timeout[12] = {
- { "1 second", 0 },
- { "2 seconds", 0 },
- { "3 seconds", 0 },
- { "4 seconds", 0 },
- { "5 seconds", 0 },
- { "6 seconds", 0 },
- { "7 seconds", 0 },
- { "8 seconds", 0 },
- { "9 seconds", 0 },
- { "10 seconds", 0 },
- { "15 seconds", 0 },
- { "20 seconds", 0 },
+ { "1 second", -1 },
+ { "2 seconds", -1 },
+ { "3 seconds", -1 },
+ { "4 seconds", -1 },
+ { "5 seconds", -1 },
+ { "6 seconds", -1 },
+ { "7 seconds", -1 },
+ { "8 seconds", -1 },
+ { "9 seconds", -1 },
+ { "10 seconds", -1 },
+ { "15 seconds", -1 },
+ { "20 seconds", -1 },
};
m = rb->menu_init(items, sizeof(items) / sizeof(*items),
NULL, NULL, NULL, NULL);
diff --git a/apps/plugins/lib/playback_control.c b/apps/plugins/lib/playback_control.c
index 35a2b92..1638a0f 100644
--- a/apps/plugins/lib/playback_control.c
+++ b/apps/plugins/lib/playback_control.c
@@ -57,8 +57,8 @@ static bool volume(void)
static bool shuffle(void)
{
struct opt_items names[] = {
- {"No", 0},
- {"Yes", 0}
+ { "No", -1 },
+ { "Yes", -1 }
};
return api->set_option("Shuffle", &api->global_settings->playlist_shuffle,
BOOL, names, 2,NULL);
@@ -68,12 +68,12 @@ static bool repeat_mode(void)
{
bool result;
static const struct opt_items names[] = {
- { "Off", 0 },
- { "Repeat All", 0 },
- { "Repeat One", 0 },
- { "Repeat Shuffle", 0 },
+ { "Off", -1 },
+ { "Repeat All", -1 },
+ { "Repeat One", -1 },
+ { "Repeat Shuffle", -1 },
#ifdef AB_REPEAT_ENABLE
- { "Repeat A-B", 0 }
+ { "Repeat A-B", -1 }
#endif
};
diff --git a/apps/plugins/pacbox/pacbox.c b/apps/plugins/pacbox/pacbox.c
index d7a0bec..8acc06a 100644
--- a/apps/plugins/pacbox/pacbox.c
+++ b/apps/plugins/pacbox/pacbox.c
@@ -147,42 +147,42 @@ static bool pacbox_menu(void)
bool need_restart = false;
static const struct opt_items noyes[2] = {
- { "No", 0 },
- { "Yes", 0 },
+ { "No", -1 },
+ { "Yes", -1 },
};
static const struct opt_items difficulty_options[2] = {
- { "Normal", 0 },
- { "Harder", 0 },
+ { "Normal", -1 },
+ { "Harder", -1 },
};
static const struct opt_items numlives_options[4] = {
- { "1", 0 },
- { "2", 0 },
- { "3", 0 },
- { "5", 0 },
+ { "1", -1 },
+ { "2", -1 },
+ { "3", -1 },
+ { "5", -1 },
};
static const struct opt_items bonus_options[4] = {
- { "10000 points", 0 },
- { "15000 points", 0 },
- { "20000 points", 0 },
- { "No bonus", 0 },
+ { "10000 points", -1 },
+ { "15000 points", -1 },
+ { "20000 points", -1 },
+ { "No bonus", -1 },
};
static const struct opt_items ghostname_options[2] = {
- { "Normal", 0 },
- { "Alternate", 0 },
+ { "Normal", -1 },
+ { "Alternate", -1 },
};
static const struct menu_item items[] = {
- { "Difficulty", 0 },
- { "Pacmen Per Game", 0 },
- { "Bonus Life", 0 },
- { "Ghost Names", 0 },
- { "Display FPS", 0 },
- { "Restart", 0 },
- { "Quit", 0 },
+ { "Difficulty", NULL },
+ { "Pacmen Per Game", NULL },
+ { "Bonus Life", NULL },
+ { "Ghost Names", NULL },
+ { "Display FPS", NULL },
+ { "Restart", NULL },
+ { "Quit", NULL },
};
m = rb->menu_init(items, sizeof(items) / sizeof(*items),
diff --git a/apps/plugins/rockboy/menu.c b/apps/plugins/rockboy/menu.c
index c877994..8dffaa0 100644
--- a/apps/plugins/rockboy/menu.c
+++ b/apps/plugins/rockboy/menu.c
@@ -322,29 +322,29 @@ static void do_opt_menu(void)
int result;
static const struct opt_items onoff[2] = {
- { "Off", 0 },
- { "On" , 0 },
+ { "Off", -1 },
+ { "On" , -1 },
};
static const struct opt_items fullscreen[]= {
- { "Off", 0 },
- { "Fullscreen", 0 },
- { "Full - Maintain Ratio", 0 },
+ { "Off", -1 },
+ { "Fullscreen", -1 },
+ { "Full - Maintain Ratio", -1 },
};
static const struct opt_items frameskip[]= {
- { "3 Max", 0 },
- { "4 Max", 0 },
- { "5 Max", 0 },
- { "6 Max", 0 },
+ { "3 Max", -1 },
+ { "4 Max", -1 },
+ { "5 Max", -1 },
+ { "6 Max", -1 },
};
static const struct menu_item items[] = {
- {"Max Frameskip", 0 },
- {"Sound" , 0 },
- {"Stats" , 0 },
- {"Fullscreen" , 0 },
- {"Set Keys (Buggy)", 0 },
+ { "Max Frameskip", NULL },
+ { "Sound" , NULL },
+ { "Stats" , NULL },
+ { "Fullscreen" , NULL },
+ { "Set Keys (Buggy)", NULL },
};
m = rb->menu_init(items, sizeof(items) / sizeof(*items), NULL, NULL, NULL, NULL);
diff --git a/apps/plugins/wormlet.c b/apps/plugins/wormlet.c
index b4469ea..279fcfc 100644
--- a/apps/plugins/wormlet.c
+++ b/apps/plugins/wormlet.c
@@ -2103,9 +2103,9 @@ bool set_worm_num_worms(void)
{
bool ret;
static const struct opt_items num_worms_option[3] = {
- { "1", 0 },
- { "2", 0 },
- { "3", 0 },
+ { "1", -1 },
+ { "2", -1 },
+ { "3", -1 },
};
ret = rb->set_option("Number Of Worms", &worm_count,INT, num_worms_option, 3, NULL);
@@ -2122,10 +2122,10 @@ bool set_worm_num_players(void)
{
bool ret;
static const struct opt_items num_players_option[4] = {
- { "0", 0 },
- { "1", 0 },
- { "2", 0 },
- { "3", 0 }
+ { "0", -1 },
+ { "1", -1 },
+ { "2", -1 },
+ { "3", -1 }
};
ret = rb->set_option("Number of Players", &players, INT,num_players_option , 4, NULL);
@@ -2144,17 +2144,17 @@ Sets the size of each argh block created
bool set_worm_argh_size(void)
{
static const struct opt_items argh_size_option[11] = {
- { "0", 0 },
- { "1", 0 },
- { "2", 0 },
- { "3", 0 },
- { "4", 0 },
- { "5", 0 },
- { "6", 0 },
- { "7", 0 },
- { "8", 0 },
- { "9", 0 },
- { "10", 0 }
+ { "0", -1 },
+ { "1", -1 },
+ { "2", -1 },
+ { "3", -1 },
+ { "4", -1 },
+ { "5", -1 },
+ { "6", -1 },
+ { "7", -1 },
+ { "8", -1 },
+ { "9", -1 },
+ { "10", -1 }
};
return rb->set_option("Argh Size", &argh_size,INT,argh_size_option , 11, NULL);
@@ -2166,17 +2166,17 @@ Sets the amount a worm grows per food
bool set_worm_food(void)
{
static const struct opt_items worm_food_option[11] = {
- { "0", 0 },
- { "1", 0 },
- { "2", 0 },
- { "3", 0 },
- { "4", 0 },
- { "5", 0 },
- { "6", 0 },
- { "7", 0 },
- { "8", 0 },
- { "9", 0 },
- { "10", 0 }
+ { "0", -1 },
+ { "1", -1 },
+ { "2", -1 },
+ { "3", -1 },
+ { "4", -1 },
+ { "5", -1 },
+ { "6", -1 },
+ { "7", -1 },
+ { "8", -1 },
+ { "9", -1 },
+ { "10", -1 }
};
return rb->set_option("Worm Growth Per Food", &worm_food,INT,worm_food_option , 11, NULL);
}
@@ -2187,11 +2187,11 @@ Sets the number of arghs created per food
bool set_argh_per_food(void)
{
static const struct opt_items argh_food_option[5] = {
- { "0", 0 },
- { "1", 0 },
- { "2", 0 },
- { "3", 0 },
- { "4", 0 },
+ { "0", -1 },
+ { "1", -1 },
+ { "2", -1 },
+ { "3", -1 },
+ { "4", -1 },
};
return rb->set_option("Arghs Per Food", &arghs_per_food,INT,argh_food_option , 5, NULL);
}
@@ -2203,25 +2203,25 @@ bool set_worm_speed(void)
{
bool ret;
static const struct opt_items speed_option[19] = {
- { "0", 0 },
- { "1", 0 },
- { "2", 0 },
- { "3", 0 },
- { "4", 0 },
- { "5", 0 },
- { "6", 0 },
- { "7", 0 },
- { "8", 0 },
- { "9", 0 },
- { "10", 0 },
- { "11", 0 },
- { "12", 0 },
- { "13", 0 },
- { "14", 0 },
- { "15", 0 },
- { "16", 0 },
- { "17", 0 },
- { "18", 0 },
+ { "0", -1 },
+ { "1", -1 },
+ { "2", -1 },
+ { "3", -1 },
+ { "4", -1 },
+ { "5", -1 },
+ { "6", -1 },
+ { "7", -1 },
+ { "8", -1 },
+ { "9", -1 },
+ { "10", -1 },
+ { "11", -1 },
+ { "12", -1 },
+ { "13", -1 },
+ { "14", -1 },
+ { "15", -1 },
+ { "16", -1 },
+ { "17", -1 },
+ { "18", -1 },
};
@@ -2240,17 +2240,17 @@ bool set_bool_options(char* string, bool* variable,
bool set_worm_control_style(void)
{
static const struct opt_items key1_option[2] = {
- { "Remote Control", 0 },
- { "No Rem. Control", 0 },
+ { "Remote Control", -1 },
+ { "No Rem. Control", -1 },
};
static const struct opt_items key2_option[2] = {
- { "2 Key Control", 0 },
- { "4 Key COntrol", 0 },
+ { "2 Key Control", -1 },
+ { "4 Key COntrol", -1 },
};
static const struct opt_items key3_option[1] = {
- { "Out of Control", 0 },
+ { "Out of Control", -1 },
};
if (players > 1) {
@@ -2352,14 +2352,14 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
/* Setup screen */
static const struct opt_items noyes[2] = {
- { "No", 0 },
- { "Yes", 0 },
+ { "No", -1 },
+ { "Yes", -1 },
};
static const struct opt_items num_worms_option[3] = {
- { "1", 0 },
- { "2", 0 },
- { "3", 0 }
+ { "1", -1 },
+ { "2", -1 },
+ { "3", -1 }
};
#ifdef MULTIPLAYER
@@ -2367,129 +2367,129 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
#else
static const struct opt_items num_players_option[2] = {
#endif
- { "0", 0 },
- { "1", 0 }
+ { "0", -1 },
+ { "1", -1 }
#ifdef MULTIPLAYER
- ,{ "2", 0 },
- { "3", 0 }
+ ,{ "2", -1 },
+ { "3", -1 }
#endif
};
static const struct opt_items argh_size_option[9] = {
- { "2", 0 },
- { "3", 0 },
- { "4", 0 },
- { "5", 0 },
- { "6", 0 },
- { "7", 0 },
- { "8", 0 },
- { "9", 0 },
- { "10", 0 }
+ { "2", -1 },
+ { "3", -1 },
+ { "4", -1 },
+ { "5", -1 },
+ { "6", -1 },
+ { "7", -1 },
+ { "8", -1 },
+ { "9", -1 },
+ { "10", -1 }
};
static const struct opt_items food_size_option[9] = {
- { "2", 0 },
- { "3", 0 },
- { "4", 0 },
- { "5", 0 },
- { "6", 0 },
- { "7", 0 },
- { "8", 0 },
- { "9", 0 },
- { "10", 0 }
+ { "2", -1 },
+ { "3", -1 },
+ { "4", -1 },
+ { "5", -1 },
+ { "6", -1 },
+ { "7", -1 },
+ { "8", -1 },
+ { "9", -1 },
+ { "10", -1 }
};
static const struct opt_items worm_food_option[16] = {
- { "0", 0 },
- { "1", 0 },
- { "2", 0 },
- { "3", 0 },
- { "4", 0 },
- { "5", 0 },
- { "6", 0 },
- { "7", 0 },
- { "8", 0 },
- { "9", 0 },
- { "10", 0 },
- { "11", 0 },
- { "12", 0 },
- { "13", 0 },
- { "14", 0 },
- { "15", 0 }
+ { "0", -1 },
+ { "1", -1 },
+ { "2", -1 },
+ { "3", -1 },
+ { "4", -1 },
+ { "5", -1 },
+ { "6", -1 },
+ { "7", -1 },
+ { "8", -1 },
+ { "9", -1 },
+ { "10", -1 },
+ { "11", -1 },
+ { "12", -1 },
+ { "13", -1 },
+ { "14", -1 },
+ { "15", -1 }
};
static const struct opt_items argh_food_option[9] = {
- { "0", 0 },
- { "1", 0 },
- { "2", 0 },
- { "3", 0 },
- { "4", 0 },
- { "5", 0 },
- { "6", 0 },
- { "7", 0 },
- { "8", 0 }
+ { "0", -1 },
+ { "1", -1 },
+ { "2", -1 },
+ { "3", -1 },
+ { "4", -1 },
+ { "5", -1 },
+ { "6", -1 },
+ { "7", -1 },
+ { "8", -1 }
};
static const struct opt_items speed_option[21] = {
- { "0", 0 },
- { "1", 0 },
- { "2", 0 },
- { "3", 0 },
- { "4", 0 },
- { "5", 0 },
- { "6", 0 },
- { "7", 0 },
- { "8", 0 },
- { "9", 0 },
- { "10", 0 },
- { "11", 0 },
- { "12", 0 },
- { "13", 0 },
- { "14", 0 },
- { "15", 0 },
- { "16", 0 },
- { "17", 0 },
- { "18", 0 },
- { "19", 0 },
- { "20", 0 }
+ { "0", -1 },
+ { "1", -1 },
+ { "2", -1 },
+ { "3", -1 },
+ { "4", -1 },
+ { "5", -1 },
+ { "6", -1 },
+ { "7", -1 },
+ { "8", -1 },
+ { "9", -1 },
+ { "10", -1 },
+ { "11", -1 },
+ { "12", -1 },
+ { "13", -1 },
+ { "14", -1 },
+ { "15", -1 },
+ { "16", -1 },
+ { "17", -1 },
+ { "18", -1 },
+ { "19", -1 },
+ { "20", -1 }
};
static const struct opt_items remoteonly_option[1] = {
- { "Remote Control", 0 }
+ { "Remote Control", -1 }
};
static const struct opt_items key24_option[2] = {
- { "4 Key Control", 0 },
- { "2 Key Control", 0 }
+ { "4 Key Control", -1 },
+ { "2 Key Control", -1 }
};
#ifdef REMOTE
static const struct opt_items remote_option[2] = {
- { "Remote Control", 0 },
- { "No Rem. Control", 0 }
+ { "Remote Control", -1 },
+ { "No Rem. Control", -1 }
};
#else
static const struct opt_items key2_option[1] = {
- { "2 Key Control", 0 }
+ { "2 Key Control", -1 }
};
#endif
static const struct opt_items nokey_option[1] = {
- { "Out of Control", 0 }
+ { "Out of Control", -1 }
};
static const struct menu_item items[] = {
- { "Play Wormlet!", 0 },
- { "Number of Worms", 0 },
- { "Number of Players", 0 },
- { "Control Style", 0 },
- { "Worm Growth Per Food", 0 },
- { "Worm Speed", 0 },
- { "Arghs Per Food", 0 },
- { "Argh Size", 0 },
- { "Food Size", 0 },
- { "Revert to Default Settings", 0 },
- { "Quit", 0 }
+ { "Play Wormlet!", NULL },
+ { "Number of Worms", NULL },
+ { "Number of Players", NULL },
+ { "Control Style", NULL },
+ { "Worm Growth Per Food", NULL },
+ { "Worm Speed", NULL },
+ { "Arghs Per Food", NULL },
+ { "Argh Size", NULL },
+ { "Food Size", NULL },
+ { "Revert to Default Settings", NULL },
+ { "Quit", NULL }
};
m = rb->menu_init(items, sizeof(items) / sizeof(*items),