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/pacbox | |
| 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/pacbox')
| -rw-r--r-- | apps/plugins/pacbox/pacbox.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/apps/plugins/pacbox/pacbox.c b/apps/plugins/pacbox/pacbox.c index ef5d4f5..560e185 100644 --- a/apps/plugins/pacbox/pacbox.c +++ b/apps/plugins/pacbox/pacbox.c @@ -57,11 +57,15 @@ static char* showfps_options[] = {"No", "Yes"}; static struct configdata config[] = { - {TYPE_ENUM, 0, 2, &settings.difficulty, "Difficulty", difficulty_options, NULL}, - {TYPE_ENUM, 0, 4, &settings.numlives, "Pacmen Per Game", numlives_options, NULL}, - {TYPE_ENUM, 0, 4, &settings.bonus, "Bonus", bonus_options, NULL}, - {TYPE_ENUM, 0, 2, &settings.ghostnames, "Ghost Names", ghostnames_options , NULL}, - {TYPE_ENUM, 0, 2, &settings.showfps, "Show FPS", showfps_options, NULL}, + {TYPE_ENUM, 0, 2, { .int_p = &settings.difficulty }, "Difficulty", + difficulty_options}, + {TYPE_ENUM, 0, 4, { .int_p = &settings.numlives }, "Pacmen Per Game", + numlives_options}, + {TYPE_ENUM, 0, 4, { .int_p = &settings.bonus }, "Bonus", bonus_options}, + {TYPE_ENUM, 0, 2, { .int_p = &settings.ghostnames }, "Ghost Names", + ghostnames_options}, + {TYPE_ENUM, 0, 2, { .int_p = &settings.showfps }, "Show FPS", + showfps_options}, }; static bool loadFile( const char * name, unsigned char * buf, int len ) |