summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2002-09-18 10:13:09 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2002-09-18 10:13:09 +0000
commit25316c5417087185a0b93f7e095a8cbedc5be110 (patch)
tree5b8ffe425d3db6a121c714751b35c0513ce2c7c7 /apps
parent78ea93d8698fb240c02b0d430966452a3d1ff3c9 (diff)
downloadrockbox-25316c5417087185a0b93f7e095a8cbedc5be110.tar.gz
rockbox-25316c5417087185a0b93f7e095a8cbedc5be110.tar.bz2
rockbox-25316c5417087185a0b93f7e095a8cbedc5be110.zip
Added play_selected option
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2323 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/playlist.c2
-rw-r--r--apps/settings_menu.c8
2 files changed, 8 insertions, 2 deletions
diff --git a/apps/playlist.c b/apps/playlist.c
index b73aaa85c7..76ce81b51a 100644
--- a/apps/playlist.c
+++ b/apps/playlist.c
@@ -253,7 +253,7 @@ int play_list(char *dir, /* "current directory" */
/* now shuffle around the indices */
randomise_playlist( random_seed );
- if(!shuffled_index) {
+ if(!shuffled_index && global_settings.play_selected) {
/* The given index was for the unshuffled list, so we need
to figure out the index AFTER the shuffle has been made.
We scan for the seek position we remmber from before. */
diff --git a/apps/settings_menu.c b/apps/settings_menu.c
index cc5ff3c127..d40263cd00 100644
--- a/apps/settings_menu.c
+++ b/apps/settings_menu.c
@@ -59,6 +59,12 @@ static Menu shuffle(void)
}
#endif
+static Menu play_selected(void)
+{
+ set_bool( "Play Selected", &global_settings.play_selected );
+ return MENU_OK;
+}
+
static Menu mp3_filter(void)
{
set_bool( "Music Filter", &global_settings.mp3filter );
@@ -206,6 +212,7 @@ Menu playback_settings_menu(void)
#ifndef HAVE_RECORDER_KEYPAD
{ "Shuffle", shuffle },
#endif
+ { "Play Selected", play_selected },
{ "Resume", resume },
{ "FF/RW Min Step", ff_rewind_min_step },
{ "FF/RW Accel", ff_rewind_accel },
@@ -336,4 +343,3 @@ Menu settings_menu(void)
menu_exit(m);
return result;
}
-