diff options
| author | Linus Nielsen Feltzing <linus@haxx.se> | 2004-07-22 07:51:49 +0000 |
|---|---|---|
| committer | Linus Nielsen Feltzing <linus@haxx.se> | 2004-07-22 07:51:49 +0000 |
| commit | e4fc3d471c96478a0f47e880363a25ad4b5929dd (patch) | |
| tree | 4280ecf7e58305a220f4ad48a1fa96bb7d6ff7f8 /apps/plugins | |
| parent | e93aa4b09ce05117d08d52487f72417413edfbb1 (diff) | |
| download | rockbox-e4fc3d471c96478a0f47e880363a25ad4b5929dd.zip rockbox-e4fc3d471c96478a0f47e880363a25ad4b5929dd.tar.gz rockbox-e4fc3d471c96478a0f47e880363a25ad4b5929dd.tar.bz2 rockbox-e4fc3d471c96478a0f47e880363a25ad4b5929dd.tar.xz | |
Updated for the new configfile functions
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4917 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins')
| -rw-r--r-- | apps/plugins/euroconverter.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/apps/plugins/euroconverter.c b/apps/plugins/euroconverter.c index 4d05f1a..ccf37ae 100644 --- a/apps/plugins/euroconverter.c +++ b/apps/plugins/euroconverter.c @@ -44,7 +44,9 @@ To do: */ /* Name and path of the config file*/ -#define CFGFILE "euroconverter.cfg" +static const char cfg_filename[] = "euroconverter.cfg"; +#define CFGFILE_VERSION 0 /* Current config file version */ +#define CFGFILE_MINVERSION 0 /* Minimum config file version to accept */ /*Pattern for the converter*/ static unsigned char pattern_euro[]={0x07, 0x08, 0x1E, 0x10, 0x1E, 0x08, 0x07}; /* € */ @@ -299,14 +301,14 @@ static void show_abbrev(void) /* Save the config to disk */ static void save_config(void) { - configfile_save(CFGFILE, config, 1); + configfile_save(cfg_filename, config, 1, CFGFILE_VERSION); } /* Load the config from disk */ static void load_config(void) { - configfile_load(CFGFILE, config, 1); + configfile_load(cfg_filename, config, 1, CFGFILE_MINVERSION); } |