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/menus | |
parent | bdec638b9ba8c6a65f51ca72755b0e5d62edd7f4 (diff) |
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/menus')
-rw-r--r-- | apps/menus/settings_menu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/menus/settings_menu.c b/apps/menus/settings_menu.c index 363792870d..b3003bf5c2 100644 --- a/apps/menus/settings_menu.c +++ b/apps/menus/settings_menu.c @@ -403,7 +403,7 @@ static int autoresume_nexttrack_callback(int action, break; case ACTION_EXIT_MENUITEM: if (global_settings.autoresume_automatic == AUTORESUME_NEXTTRACK_CUSTOM - && kbd_input ((char*) &global_settings.autoresume_strpat, + && kbd_input ((char*) &global_settings.autoresume_paths, MAX_PATHNAME+1) < 0) { global_settings.autoresume_automatic = oldval; |