From a5303765eca19e2c0ecfe7281a7e1cfaafc23a13 Mon Sep 17 00:00:00 2001 From: Michael Hohmuth Date: Fri, 11 Feb 2011 00:20:03 +0000 Subject: 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 --- apps/settings_list.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/settings_list.c') 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[] = { 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, -- cgit v1.2.3