From e4fc3d471c96478a0f47e880363a25ad4b5929dd Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Thu, 22 Jul 2004 07:51:49 +0000 Subject: Updated for the new configfile functions git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4917 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/euroconverter.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'apps/plugins') 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: */ /* 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); } -- cgit v1.2.3