summaryrefslogtreecommitdiff
path: root/apps/plugins/zxbox/spmain.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/zxbox/spmain.c')
-rw-r--r--apps/plugins/zxbox/spmain.c18
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"};*/
75 75
76static struct configdata config[] = 76static struct configdata config[] =
77{ 77{
78 {TYPE_ENUM, 0, 2, &settings.invert_colors, "Invert Colors", noyes_options, NULL}, 78 {TYPE_ENUM, 0, 2, { .int_p = &settings.invert_colors }, "Invert Colors",
79 {TYPE_ENUM, 0, 2, &settings.kempston, "Map keys to kempston", noyes_options, NULL}, 79 noyes_options},
80 {TYPE_ENUM, 0, 2, &settings.showfps, "Show Speed", noyes_options, NULL}, 80 {TYPE_ENUM, 0, 2, { .int_p = &settings.kempston }, "Map keys to kempston",
81 {TYPE_ENUM, 0, 2, &settings.sound, "Sound", noyes_options, NULL}, 81 noyes_options},
82 {TYPE_INT, 0, 9, &settings.frameskip, "Frameskip", NULL, NULL}, 82 {TYPE_ENUM, 0, 2, { .int_p = &settings.showfps }, "Show Speed",
83 {TYPE_INT, 1, 10, &settings.volume, "Volume", NULL, NULL}, 83 noyes_options},
84 {TYPE_STRING, 0, 5, NULL,"Key Mapping", NULL, (char*)&settings.keymap}, 84 {TYPE_ENUM, 0, 2, { .int_p = &settings.sound }, "Sound", noyes_options},
85 {TYPE_INT, 0, 9, { .int_p = &settings.frameskip }, "Frameskip", NULL},
86 {TYPE_INT, 1, 10, { .int_p = &settings.volume }, "Volume", NULL},
87 {TYPE_STRING, 0, 5, { .string = (char*)&settings.keymap }, "Key Mapping",
88 NULL},
85}; 89};
86int spcf_read_conf_file(const char *filename) 90int spcf_read_conf_file(const char *filename)
87{ 91{