summaryrefslogtreecommitdiff
path: root/apps/plugins/mazezam.c
diff options
context:
space:
mode:
authorAndrew Mahone <andrew.mahone@gmail.com>2009-01-17 22:53:12 +0000
committerAndrew Mahone <andrew.mahone@gmail.com>2009-01-17 22:53:12 +0000
commit0b41f0599f62ec9099197bbe6f4dd7144cebe0df (patch)
tree927f23ea1a943777baa0e7cf1f8070608c3847d7 /apps/plugins/mazezam.c
parent2fecb713ea07f06b5219a75c95909b986c2468a5 (diff)
downloadrockbox-0b41f0599f62ec9099197bbe6f4dd7144cebe0df.tar.gz
rockbox-0b41f0599f62ec9099197bbe6f4dd7144cebe0df.zip
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/mazezam.c')
-rw-r--r--apps/plugins/mazezam.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/plugins/mazezam.c b/apps/plugins/mazezam.c
index 8981986144..6b9ad43cc7 100644
--- a/apps/plugins/mazezam.c
+++ b/apps/plugins/mazezam.c
@@ -807,8 +807,8 @@ static void game_loop(struct resume_data *r)
807static void resume_load_data (struct resume_data *r, struct resume_data *old) 807static void resume_load_data (struct resume_data *r, struct resume_data *old)
808{ 808{
809 struct configdata config[] = { 809 struct configdata config[] = {
810 {TYPE_INT,0,MAZEZAM_NUM_LEVELS-1,&(r->level), 810 {TYPE_INT,0,MAZEZAM_NUM_LEVELS-1, { .int_p = &(r->level) },
811 MAZEZAM_CONFIG_LEVELS_NAME,NULL,NULL} 811 MAZEZAM_CONFIG_LEVELS_NAME,NULL}
812 }; 812 };
813 813
814 if (configfile_load(MAZEZAM_CONFIG_FILENAME,config, 814 if (configfile_load(MAZEZAM_CONFIG_FILENAME,config,
@@ -827,8 +827,8 @@ static void resume_load_data (struct resume_data *r, struct resume_data *old)
827static void resume_save_data (struct resume_data *r, struct resume_data *old) 827static void resume_save_data (struct resume_data *r, struct resume_data *old)
828{ 828{
829 struct configdata config[] = { 829 struct configdata config[] = {
830 {TYPE_INT,0,MAZEZAM_NUM_LEVELS-1,&(r->level), 830 {TYPE_INT,0,MAZEZAM_NUM_LEVELS-1, {.int_p = &(r->level) },
831 MAZEZAM_CONFIG_LEVELS_NAME,NULL,NULL} 831 MAZEZAM_CONFIG_LEVELS_NAME,NULL}
832 }; 832 };
833 833
834 /* To reduce disk usage, only write the file if the resume data has 834 /* To reduce disk usage, only write the file if the resume data has