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/zxbox | |
parent | 2fecb713ea07f06b5219a75c95909b986c2468a5 (diff) |
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/zxbox')
-rw-r--r-- | apps/plugins/zxbox/spmain.c | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/apps/plugins/zxbox/spmain.c b/apps/plugins/zxbox/spmain.c index e304d8b52d..b7d20ecf5e 100644 --- a/apps/plugins/zxbox/spmain.c +++ b/apps/plugins/zxbox/spmain.c @@ -75,13 +75,17 @@ static char* showfps_options[] = {"No", "Yes"};*/ static struct configdata config[] = { - {TYPE_ENUM, 0, 2, &settings.invert_colors, "Invert Colors", noyes_options, NULL}, - {TYPE_ENUM, 0, 2, &settings.kempston, "Map keys to kempston", noyes_options, NULL}, - {TYPE_ENUM, 0, 2, &settings.showfps, "Show Speed", noyes_options, NULL}, - {TYPE_ENUM, 0, 2, &settings.sound, "Sound", noyes_options, NULL}, - {TYPE_INT, 0, 9, &settings.frameskip, "Frameskip", NULL, NULL}, - {TYPE_INT, 1, 10, &settings.volume, "Volume", NULL, NULL}, - {TYPE_STRING, 0, 5, NULL,"Key Mapping", NULL, (char*)&settings.keymap}, + {TYPE_ENUM, 0, 2, { .int_p = &settings.invert_colors }, "Invert Colors", + noyes_options}, + {TYPE_ENUM, 0, 2, { .int_p = &settings.kempston }, "Map keys to kempston", + noyes_options}, + {TYPE_ENUM, 0, 2, { .int_p = &settings.showfps }, "Show Speed", + noyes_options}, + {TYPE_ENUM, 0, 2, { .int_p = &settings.sound }, "Sound", noyes_options}, + {TYPE_INT, 0, 9, { .int_p = &settings.frameskip }, "Frameskip", NULL}, + {TYPE_INT, 1, 10, { .int_p = &settings.volume }, "Volume", NULL}, + {TYPE_STRING, 0, 5, { .string = (char*)&settings.keymap }, "Key Mapping", + NULL}, }; int spcf_read_conf_file(const char *filename) { |