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.h | |
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.h')
-rw-r--r-- | apps/settings.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 | |||
583 | bool autoresume_enable; /* enable auto-resume feature? */ | 583 | bool autoresume_enable; /* enable auto-resume feature? */ |
584 | int autoresume_automatic; /* resume next track? 0=never, 1=always, | 584 | int autoresume_automatic; /* resume next track? 0=never, 1=always, |
585 | 2=custom */ | 585 | 2=custom */ |
586 | unsigned char autoresume_strpat[MAX_PATHNAME+1]; /* comma-separated list */ | 586 | unsigned char autoresume_paths[MAX_PATHNAME+1]; /* colon-separated list */ |
587 | bool runtimedb; /* runtime database active? */ | 587 | bool runtimedb; /* runtime database active? */ |
588 | #endif /* HAVE_TAGCACHE */ | 588 | #endif /* HAVE_TAGCACHE */ |
589 | 589 | ||