From 02df5a80680c8b7bd9e89e93a675cb8e2b3c1c3d Mon Sep 17 00:00:00 2001 From: Miika Pekkarinen Date: Tue, 24 Oct 2006 16:20:48 +0000 Subject: Allow all tag type in formatting string. Included example with tagnavi.config. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11324 a1c6a512-1295-4272-9138-f99709370657 --- apps/tagcache.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'apps/tagcache.c') diff --git a/apps/tagcache.c b/apps/tagcache.c index 3ba1f21..ffafe5b 100644 --- a/apps/tagcache.c +++ b/apps/tagcache.c @@ -1288,7 +1288,7 @@ bool tagcache_get_next(struct tagcache_search *tcs) } bool tagcache_retrieve(struct tagcache_search *tcs, int idxid, - char *buf, long size) + int tag, char *buf, long size) { struct index_entry idx; @@ -1296,7 +1296,7 @@ bool tagcache_retrieve(struct tagcache_search *tcs, int idxid, if (!get_index(tcs->masterfd, idxid, &idx, true)) return false; - return retrieve(tcs, &idx, tcs->type, buf, size); + return retrieve(tcs, &idx, tag, buf, size); } #if 0 @@ -2860,7 +2860,7 @@ bool tagcache_create_changelog(struct tagcache_search *tcs) } tcs->type = j; - tagcache_retrieve(tcs, i, buf, sizeof buf); + tagcache_retrieve(tcs, i, tcs->type, buf, sizeof buf); write_tag(clfd, tagcache_tag_to_str(j), buf); } -- cgit v1.1