diff options
author | Nick Peskett <rockbox@peskett.co.uk> | 2012-03-19 09:56:38 +0000 |
---|---|---|
committer | Nick Peskett <rockbox@peskett.co.uk> | 2012-03-19 11:49:55 +0100 |
commit | be10817e1c09d5a41710435cf6d58deb6dde9301 (patch) | |
tree | 4635fcb1ab51d2ef6dc1db28db045c369cf1abaf /apps/settings.h | |
parent | 69978d7046cd7e537c5079a5e306d22621a1767a (diff) | |
download | rockbox-be10817e1c09d5a41710435cf6d58deb6dde9301.tar.gz rockbox-be10817e1c09d5a41710435cf6d58deb6dde9301.zip |
Option to constrain get_next_dir() to directories below global_settings.start_directory.
When enabled, if the user has set "Start File Browser Here" (config.cfg:
start directory) to anything other than root and "Auto-Change Directory"
is set to "Yes" or "Random", the directory returned when an auto change
is required will be constrained to the value of "start directory" or below.
Change-Id: Iaab773868c4cab5a54f6ae67bdb22e84642a9e4b
Reviewed-on: http://gerrit.rockbox.org/182
Reviewed-by: Nick Peskett <rockbox@peskett.co.uk>
Tested-by: Nick Peskett <rockbox@peskett.co.uk>
Diffstat (limited to 'apps/settings.h')
-rw-r--r-- | apps/settings.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/settings.h b/apps/settings.h index 012e289d0c..777c7dbefe 100644 --- a/apps/settings.h +++ b/apps/settings.h | |||
@@ -590,6 +590,8 @@ struct user_settings | |||
590 | /* playlist/playback settings */ | 590 | /* playlist/playback settings */ |
591 | int repeat_mode; /* 0=off 1=repeat all 2=repeat one 3=shuffle 4=ab */ | 591 | int repeat_mode; /* 0=off 1=repeat all 2=repeat one 3=shuffle 4=ab */ |
592 | int next_folder; /* move to next folder */ | 592 | int next_folder; /* move to next folder */ |
593 | bool constrain_next_folder; /* whether next_folder is constrained to | ||
594 | directories within start_directory */ | ||
593 | int recursive_dir_insert; /* should directories be inserted recursively */ | 595 | int recursive_dir_insert; /* should directories be inserted recursively */ |
594 | bool fade_on_stop; /* fade on pause/unpause/stop */ | 596 | bool fade_on_stop; /* fade on pause/unpause/stop */ |
595 | bool playlist_shuffle; | 597 | bool playlist_shuffle; |