Hi,
I'm looking for a bit of help editing the Rockbox code so that I can change the format of the song titles returned by the default <All Tracks> menu options in the database menus. The base behaviour is to return the list of all song title tags for the relevant filter sorted alphabetically. What I'd like to be able to do is specify the format of the song titles, preferably via the tagnavi.config file in a similar way to any other filter. Specifically, I'd like something of the form:
%format "all_fmt_title" "%d - %s - %02d. %s" year album tracknum title
which should return the list of all songs (for a given artist/genre/whatever) sorted by year, album title, tracknumber and then title.
Having looked at the tagcache.c code and think I've located the relevant function (static int retrieve_entries()):
...
fmt = NULL;
/* Check the format */
for (i = 0; i < format_count; i++)
{
if (formats->group_id != csi->format_id[level])
continue;
if (tagcache_check_clauses(tcs, formats->clause,
formats->clause_count))
{
fmt = formats;
break;
}
}
...
but for the "allsubentries" case, how would I specify or hardcode the format?
Cheers
Justin