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 | |
parent | e93aa4b09ce05117d08d52487f72417413edfbb1 (diff) | |
download | rockbox-e4fc3d471c96478a0f47e880363a25ad4b5929dd.tar.gz rockbox-e4fc3d471c96478a0f47e880363a25ad4b5929dd.zip |
Updated for the new configfile functions
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4917 a1c6a512-1295-4272-9138-f99709370657
-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 4d05f1a5ac..ccf37ae7e0 100644 --- a/apps/plugins/euroconverter.c +++ b/apps/plugins/euroconverter.c | |||
@@ -44,7 +44,9 @@ To do: | |||
44 | */ | 44 | */ |
45 | 45 | ||
46 | /* Name and path of the config file*/ | 46 | /* Name and path of the config file*/ |
47 | #define CFGFILE "euroconverter.cfg" | 47 | static const char cfg_filename[] = "euroconverter.cfg"; |
48 | #define CFGFILE_VERSION 0 /* Current config file version */ | ||
49 | #define CFGFILE_MINVERSION 0 /* Minimum config file version to accept */ | ||
48 | 50 | ||
49 | /*Pattern for the converter*/ | 51 | /*Pattern for the converter*/ |
50 | static unsigned char pattern_euro[]={0x07, 0x08, 0x1E, 0x10, 0x1E, 0x08, 0x07}; /* € */ | 52 | static unsigned char pattern_euro[]={0x07, 0x08, 0x1E, 0x10, 0x1E, 0x08, 0x07}; /* € */ |
@@ -299,14 +301,14 @@ static void show_abbrev(void) | |||
299 | /* Save the config to disk */ | 301 | /* Save the config to disk */ |
300 | static void save_config(void) | 302 | static void save_config(void) |
301 | { | 303 | { |
302 | configfile_save(CFGFILE, config, 1); | 304 | configfile_save(cfg_filename, config, 1, CFGFILE_VERSION); |
303 | } | 305 | } |
304 | 306 | ||
305 | 307 | ||
306 | /* Load the config from disk */ | 308 | /* Load the config from disk */ |
307 | static void load_config(void) | 309 | static void load_config(void) |
308 | { | 310 | { |
309 | configfile_load(CFGFILE, config, 1); | 311 | configfile_load(cfg_filename, config, 1, CFGFILE_MINVERSION); |
310 | } | 312 | } |
311 | 313 | ||
312 | 314 | ||