summaryrefslogtreecommitdiff
path: root/apps/settings_list.c
diff options
context:
space:
mode:
authorMichael Hohmuth <sideral@rockbox.org>2011-02-11 00:20:03 +0000
committerMichael Hohmuth <sideral@rockbox.org>2011-02-11 00:20:03 +0000
commita5303765eca19e2c0ecfe7281a7e1cfaafc23a13 (patch)
tree24eaddd45e98a48e19d36f3fc336d658244b8429 /apps/settings_list.c
parentbdec638b9ba8c6a65f51ca72755b0e5d62edd7f4 (diff)
downloadrockbox-a5303765eca19e2c0ecfe7281a7e1cfaafc23a13.zip
rockbox-a5303765eca19e2c0ecfe7281a7e1cfaafc23a13.tar.gz
rockbox-a5303765eca19e2c0ecfe7281a7e1cfaafc23a13.tar.bz2
rockbox-a5303765eca19e2c0ecfe7281a7e1cfaafc23a13.tar.xz
autoresume: Match full directory path names only in autoresumable()
Removed genre-tag matching (considered too fragile for real-world use). Removed substring matching for file names. To avoid unintended matches, the search pattern now must match the file's full dir name (or a parent directory thereof), anchored in the root directory. Search strings now must be delimited with ":" rather than ",". The default list of directories is "/podcast:/podcasts" (case-insensitive). Made implementation somewhat more efficient (don't use strtok -> no need to copy the string to private storage (stack) before tokenizing it). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29280 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/settings_list.c')
-rw-r--r--apps/settings_list.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/settings_list.c b/apps/settings_list.c
index 75e989e..69b543c 100644
--- a/apps/settings_list.c
+++ b/apps/settings_list.c
@@ -1268,8 +1268,8 @@ const struct settings_list settings[] = {
ID2P(LANG_SET_BOOL_NO),
ID2P(LANG_ALWAYS),
ID2P(LANG_AUTORESUME_CUSTOM)),
- TEXT_SETTING(0, autoresume_strpat, "autoresume next track patterns",
- "podcast", NULL, NULL),
+ TEXT_SETTING(0, autoresume_paths, "autoresume next track paths",
+ "/podcast:/podcasts", NULL, NULL),
#endif
OFFON_SETTING(0, runtimedb, LANG_RUNTIMEDB_ACTIVE, false,