forked from len0rd/rockbox
Now keeps integers within range, and saves a version number in the cfg file, refusing to load too old versions
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4916 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
1f019981e4
commit
e93aa4b09c
2 changed files with 25 additions and 5 deletions
|
@ -38,7 +38,9 @@ struct configdata
|
|||
};
|
||||
|
||||
void configfile_init(struct plugin_api* newrb);
|
||||
int configfile_save(char *filename, struct configdata *cfg, int num_items);
|
||||
int configfile_load(char *filename, struct configdata *cfg, int num_items);
|
||||
int configfile_save(const char *filename, struct configdata *cfg,
|
||||
int num_items, int version);
|
||||
int configfile_load(const char *filename, struct configdata *cfg,
|
||||
int num_items, int min_version);
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue