forked from len0rd/rockbox
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
This commit is contained in:
parent
2fecb713ea
commit
0b41f0599f
16 changed files with 120 additions and 91 deletions
|
|
@ -807,8 +807,8 @@ static void game_loop(struct resume_data *r)
|
|||
static void resume_load_data (struct resume_data *r, struct resume_data *old)
|
||||
{
|
||||
struct configdata config[] = {
|
||||
{TYPE_INT,0,MAZEZAM_NUM_LEVELS-1,&(r->level),
|
||||
MAZEZAM_CONFIG_LEVELS_NAME,NULL,NULL}
|
||||
{TYPE_INT,0,MAZEZAM_NUM_LEVELS-1, { .int_p = &(r->level) },
|
||||
MAZEZAM_CONFIG_LEVELS_NAME,NULL}
|
||||
};
|
||||
|
||||
if (configfile_load(MAZEZAM_CONFIG_FILENAME,config,
|
||||
|
|
@ -827,8 +827,8 @@ static void resume_load_data (struct resume_data *r, struct resume_data *old)
|
|||
static void resume_save_data (struct resume_data *r, struct resume_data *old)
|
||||
{
|
||||
struct configdata config[] = {
|
||||
{TYPE_INT,0,MAZEZAM_NUM_LEVELS-1,&(r->level),
|
||||
MAZEZAM_CONFIG_LEVELS_NAME,NULL,NULL}
|
||||
{TYPE_INT,0,MAZEZAM_NUM_LEVELS-1, {.int_p = &(r->level) },
|
||||
MAZEZAM_CONFIG_LEVELS_NAME,NULL}
|
||||
};
|
||||
|
||||
/* To reduce disk usage, only write the file if the resume data has
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue