summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2003-05-04 22:58:12 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2003-05-04 22:58:12 +0000
commited100cafda690cc5e9d6002d0283f8c567ee0383 (patch)
tree1d877a8724e03b4ad38366c78f6b117915095815
parent8d8b8d1a7b0987aa578620e594e9c8a9a3b8c975 (diff)
downloadrockbox-ed100cafda690cc5e9d6002d0283f8c567ee0383.tar.gz
rockbox-ed100cafda690cc5e9d6002d0283f8c567ee0383.zip
Changed the radio preset file name
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3652 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/recorder/radio.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/apps/recorder/radio.c b/apps/recorder/radio.c
index 5b8f3d5b07..d45d1669b6 100644
--- a/apps/recorder/radio.c
+++ b/apps/recorder/radio.c
@@ -56,6 +56,8 @@ static int pll_cnt;
static bool presets_loaded = false;
static struct fmstation presets[MAX_PRESETS];
+static char default_filename[] = "/.rockbox/fm-presets-default.fmr";
+
void fm_load_presets(void);
bool fm_preset_select(void);
bool fm_menu(void);
@@ -290,7 +292,7 @@ void fm_save_presets(void)
int fd;
int i;
- fd = creat("/.rockbox/fm_presets.txt", O_WRONLY);
+ fd = creat(default_filename, O_WRONLY);
if(fd >= 0)
{
for(i = 0;i < MAX_PRESETS;i++)
@@ -320,7 +322,7 @@ void fm_load_presets(void)
{
memset(presets, 0, sizeof(presets));
- fd = open("/.rockbox/fm_presets.txt", O_RDONLY);
+ fd = open(default_filename, O_RDONLY);
if(fd >= 0)
{
i = 0;
@@ -466,8 +468,8 @@ bool fm_delete_preset(void)
}
static struct menu_items fm_menu_items[] = {
- { "Add preset...", fm_add_preset },
- { "Delete preset...", fm_delete_preset }
+ { "Add preset", fm_add_preset },
+ { "Delete preset", fm_delete_preset }
};
bool fm_menu(void)