diff options
author | Michael Hohmuth <sideral@rockbox.org> | 2011-02-11 00:20:03 +0000 |
---|---|---|
committer | Michael Hohmuth <sideral@rockbox.org> | 2011-02-11 00:20:03 +0000 |
commit | a5303765eca19e2c0ecfe7281a7e1cfaafc23a13 (patch) | |
tree | 24eaddd45e98a48e19d36f3fc336d658244b8429 /apps/settings_list.c | |
parent | bdec638b9ba8c6a65f51ca72755b0e5d62edd7f4 (diff) | |
download | rockbox-a5303765eca19e2c0ecfe7281a7e1cfaafc23a13.tar.gz rockbox-a5303765eca19e2c0ecfe7281a7e1cfaafc23a13.zip |
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.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/settings_list.c b/apps/settings_list.c index 75e989eb10..69b543c763 100644 --- a/apps/settings_list.c +++ b/apps/settings_list.c | |||
@@ -1268,8 +1268,8 @@ const struct settings_list settings[] = { | |||
1268 | ID2P(LANG_SET_BOOL_NO), | 1268 | ID2P(LANG_SET_BOOL_NO), |
1269 | ID2P(LANG_ALWAYS), | 1269 | ID2P(LANG_ALWAYS), |
1270 | ID2P(LANG_AUTORESUME_CUSTOM)), | 1270 | ID2P(LANG_AUTORESUME_CUSTOM)), |
1271 | TEXT_SETTING(0, autoresume_strpat, "autoresume next track patterns", | 1271 | TEXT_SETTING(0, autoresume_paths, "autoresume next track paths", |
1272 | "podcast", NULL, NULL), | 1272 | "/podcast:/podcasts", NULL, NULL), |
1273 | #endif | 1273 | #endif |
1274 | 1274 | ||
1275 | OFFON_SETTING(0, runtimedb, LANG_RUNTIMEDB_ACTIVE, false, | 1275 | OFFON_SETTING(0, runtimedb, LANG_RUNTIMEDB_ACTIVE, false, |