diff options
| author | Andrew Mahone <andrew.mahone@gmail.com> | 2009-01-17 22:53:12 +0000 |
|---|---|---|
| committer | Andrew Mahone <andrew.mahone@gmail.com> | 2009-01-17 22:53:12 +0000 |
| commit | 0b41f0599f62ec9099197bbe6f4dd7144cebe0df (patch) | |
| tree | 927f23ea1a943777baa0e7cf1f8070608c3847d7 /apps/plugins/wormlet.c | |
| parent | 2fecb713ea07f06b5219a75c95909b986c2468a5 (diff) | |
| download | rockbox-0b41f0599f62ec9099197bbe6f4dd7144cebe0df.zip rockbox-0b41f0599f62ec9099197bbe6f4dd7144cebe0df.tar.gz rockbox-0b41f0599f62ec9099197bbe6f4dd7144cebe0df.tar.bz2 rockbox-0b41f0599f62ec9099197bbe6f4dd7144cebe0df.tar.xz | |
unify pointers to value for configfile, and add TYPE_BOOL type, used by
pictureflow
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19786 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/wormlet.c')
| -rw-r--r-- | apps/plugins/wormlet.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/apps/plugins/wormlet.c b/apps/plugins/wormlet.c index abb2653..ee80462 100644 --- a/apps/plugins/wormlet.c +++ b/apps/plugins/wormlet.c @@ -468,15 +468,14 @@ static int players = 1; static struct configdata config[] = { - {TYPE_INT, 0, 1024, &highscore, "highscore", NULL, NULL}, - {TYPE_INT, 0, 15, &arghs_per_food, "arghs per food", NULL, NULL}, - {TYPE_INT, 0, 15, &argh_size, "argh size", NULL, NULL}, - {TYPE_INT, 0, 15, &food_size, "food size", NULL, NULL}, - {TYPE_INT, 0, 3, &players, "players", NULL, NULL}, - {TYPE_INT, 0, 3, &worm_count, "worms", NULL, NULL}, - {TYPE_INT, 0, 20, &speed, "speed", NULL, NULL}, - {TYPE_INT, 0, 15, &worm_food, "Worm Growth Per Food", NULL, NULL}//, - //{TYPE_INT, 0, 3, &use_remote, "use remote", NULL, NULL} + {TYPE_INT, 0, 1024, { .int_p = &highscore }, "highscore", NULL}, + {TYPE_INT, 0, 15, { .int_p = &arghs_per_food }, "arghs per food", NULL}, + {TYPE_INT, 0, 15, { .int_p = &argh_size }, "argh size", NULL}, + {TYPE_INT, 0, 15, { .int_p = &food_size }, "food size", NULL}, + {TYPE_INT, 0, 3, { .int_p = &players }, "players", NULL}, + {TYPE_INT, 0, 3, { .int_p = &worm_count }, "worms", NULL}, + {TYPE_INT, 0, 20, { .int_p = &speed }, "speed", NULL}, + {TYPE_INT, 0, 15, { .int_p = &worm_food }, "Worm Growth Per Food", NULL} }; #ifdef DEBUG_WORMLET |