summaryrefslogtreecommitdiffstats
path: root/apps/plugins/euroconverter.c
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2004-07-22 07:51:49 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2004-07-22 07:51:49 +0000
commite4fc3d471c96478a0f47e880363a25ad4b5929dd (patch)
tree4280ecf7e58305a220f4ad48a1fa96bb7d6ff7f8 /apps/plugins/euroconverter.c
parente93aa4b09ce05117d08d52487f72417413edfbb1 (diff)
downloadrockbox-e4fc3d471c96478a0f47e880363a25ad4b5929dd.tar.gz
rockbox-e4fc3d471c96478a0f47e880363a25ad4b5929dd.tar.bz2
rockbox-e4fc3d471c96478a0f47e880363a25ad4b5929dd.zip
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/euroconverter.c')
-rw-r--r--apps/plugins/euroconverter.c8
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:
*/
/* 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);
}