From 66b45eeb596af1bd950832cd16b3752430f691c4 Mon Sep 17 00:00:00 2001 From: Henrik Backe Date: Fri, 10 Sep 2004 20:51:12 +0000 Subject: Added check for missing .rockbox directory to playlist code. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5063 a1c6a512-1295-4272-9138-f99709370657 --- apps/playlist.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'apps/playlist.c') diff --git a/apps/playlist.c b/apps/playlist.c index 8d4f62db68..5725c4be85 100644 --- a/apps/playlist.c +++ b/apps/playlist.c @@ -247,10 +247,17 @@ static void create_control(struct playlist_info* playlist) playlist->control_fd = creat(playlist->control_filename, 0000200); if (playlist->control_fd < 0) { - splash(HZ*2, true, "%s (%d)", str(LANG_PLAYLIST_CONTROL_ACCESS_ERROR), - playlist->control_fd); + if (check_rockboxdir()) + { + splash(HZ*2, true, "%s (%d)", str(LANG_PLAYLIST_CONTROL_ACCESS_ERROR), + playlist->control_fd); + } + playlist->control_created = false; + } + else + { + playlist->control_created = true; } - playlist->control_created = true; } /* -- cgit v1.2.3