diff options
| author | Henrik Backe <henrik@backe.eu> | 2004-09-10 20:51:12 +0000 |
|---|---|---|
| committer | Henrik Backe <henrik@backe.eu> | 2004-09-10 20:51:12 +0000 |
| commit | 66b45eeb596af1bd950832cd16b3752430f691c4 (patch) | |
| tree | 25f5f0efe604a04842cce72a09001f1f9573cd0f /apps/playlist.c | |
| parent | 7a9910ccb9d67aed276778cf1bdb48ebcc3fed38 (diff) | |
| download | rockbox-66b45eeb596af1bd950832cd16b3752430f691c4.zip rockbox-66b45eeb596af1bd950832cd16b3752430f691c4.tar.gz rockbox-66b45eeb596af1bd950832cd16b3752430f691c4.tar.bz2 rockbox-66b45eeb596af1bd950832cd16b3752430f691c4.tar.xz | |
Added check for missing .rockbox directory to playlist code.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5063 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/playlist.c')
| -rw-r--r-- | apps/playlist.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/apps/playlist.c b/apps/playlist.c index 8d4f62d..5725c4b 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; } /* |