diff options
author | Björn Stenberg <bjorn@haxx.se> | 2006-03-19 08:40:31 +0000 |
---|---|---|
committer | Björn Stenberg <bjorn@haxx.se> | 2006-03-19 08:40:31 +0000 |
commit | fc390af3e823addfc336d32b7fb2aaaa7e534d59 (patch) | |
tree | ec831a1db17adfd172896307e84488432df4e687 /apps/filetree.c | |
parent | 2f438bb2da0ace06a21ce186997d86bc99f372f9 (diff) |
Added 'Party Mode': Unstoppable playback
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9114 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/filetree.c')
-rw-r--r-- | apps/filetree.c | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/apps/filetree.c b/apps/filetree.c index b8f066745f..846e707112 100644 --- a/apps/filetree.c +++ b/apps/filetree.c @@ -344,6 +344,11 @@ int ft_enter(struct tree_context* c) gui_syncsplash(0, true, str(LANG_WAIT)); switch ( file->attr & TREE_ATTR_MASK ) { case TREE_ATTR_M3U: + if (global_settings.party_mode) { + gui_syncsplash(HZ, true, str(LANG_PARTY_MODE)); + break; + } + if (bookmark_autoload(buf)) break; @@ -385,7 +390,12 @@ int ft_enter(struct tree_context* c) break; } - if (playlist_create(c->currdir, NULL) != -1) + if (global_settings.party_mode) { + playlist_insert_track(NULL, buf, + PLAYLIST_INSERT_LAST, true); + gui_syncsplash(HZ, true, str(LANG_INSERT_LAST)); + } + else if (playlist_create(c->currdir, NULL) != -1) { start_index = ft_build_playlist(c, c->selected_item); if (global_settings.playlist_shuffle) @@ -462,6 +472,11 @@ int ft_enter(struct tree_context* c) /* plugin file */ case TREE_ATTR_ROCK: + if (global_settings.party_mode) { + gui_syncsplash(HZ, true, str(LANG_PARTY_MODE)); + break; + } + if (plugin_load(buf,NULL) == PLUGIN_USB_CONNECTED) { if(*c->dirfilter > NUM_FILTER_MODES) @@ -475,7 +490,14 @@ int ft_enter(struct tree_context* c) default: { - char* plugin = filetype_get_plugin(file); + char* plugin; + + if (global_settings.party_mode) { + gui_syncsplash(HZ, true, str(LANG_PARTY_MODE)); + break; + } + + plugin = filetype_get_plugin(file); if (plugin) { if (plugin_load(plugin,buf) == PLUGIN_USB_CONNECTED) |