summaryrefslogtreecommitdiffstats
path: root/apps/tree.c
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2011-07-20 14:11:15 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2011-07-20 14:11:15 +0000
commit97a4c1efa473e40b4dd7287571f3b1c9caaba97d (patch)
tree384bb5b81d5c4c5b6098bff835af9a7cc75161de /apps/tree.c
parent4983d052a0d73340d09086a796b4ccbb45dfd88b (diff)
downloadrockbox-97a4c1efa473e40b4dd7287571f3b1c9caaba97d.tar.gz
rockbox-97a4c1efa473e40b4dd7287571f3b1c9caaba97d.tar.bz2
rockbox-97a4c1efa473e40b4dd7287571f3b1c9caaba97d.zip
FS#11808 - Major playlist handling changes (on disk playlists)
* Playlists are treated similar to directories in the browser, they now open in the viewer when selected instead of automatically starting the playlist. * Make the "Playlists" main menu item useful, it now displays the playlist catalog (and has been renamed accordingly) * Default to storing playlists in the catalog * Add a UI to move the catalog directory (other minor stuff too) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30177 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/tree.c')
-rw-r--r--apps/tree.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/apps/tree.c b/apps/tree.c
index a9e6a6e840..f38edb2ae6 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -917,8 +917,15 @@ bool create_playlist(void)
{
char filename[MAX_PATH];
- snprintf(filename, sizeof filename, "%s.m3u8",
- tc.currdir[1] ? tc.currdir : "/root");
+ if (tc.currdir[1])
+ snprintf(filename, sizeof filename, "%s.m3u8", tc.currdir);
+ else
+ snprintf(filename, sizeof filename, "%s/all.m3u8",
+ catalog_get_directory());
+
+
+ if (kbd_input(filename, MAX_PATH))
+ return false;
splashf(0, "%s %s", str(LANG_CREATING), filename);
trigger_cpu_boost();