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.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/settings.h') diff --git a/apps/settings.h b/apps/settings.h index ae32a65bc6..0734cf0668 100644 --- a/apps/settings.h +++ b/apps/settings.h @@ -583,7 +583,7 @@ struct user_settings bool autoresume_enable; /* enable auto-resume feature? */ int autoresume_automatic; /* resume next track? 0=never, 1=always, 2=custom */ - unsigned char autoresume_strpat[MAX_PATHNAME+1]; /* comma-separated list */ + unsigned char autoresume_paths[MAX_PATHNAME+1]; /* colon-separated list */ bool runtimedb; /* runtime database active? */ #endif /* HAVE_TAGCACHE */ -- cgit v1.2.3