summaryrefslogtreecommitdiff
path: root/apps/tagtree.c
diff options
context:
space:
mode:
authorMiika Pekkarinen <miipekk@ihme.org>2006-07-20 12:19:31 +0000
committerMiika Pekkarinen <miipekk@ihme.org>2006-07-20 12:19:31 +0000
commitcb8c79541504ce8a4e1d4243ccec826707e30544 (patch)
tree66c065035b31fc480db2fe3e83daf1672829a87a /apps/tagtree.c
parent7b5af8c045d1db6e805981e1c6d1b32de200e3f3 (diff)
downloadrockbox-cb8c79541504ce8a4e1d4243ccec826707e30544.tar.gz
rockbox-cb8c79541504ce8a4e1d4243ccec826707e30544.zip
Support importing runtimedb data from ascii files.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10260 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/tagtree.c')
-rw-r--r--apps/tagtree.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/apps/tagtree.c b/apps/tagtree.c
index f5c100f6ea..7321e9df49 100644
--- a/apps/tagtree.c
+++ b/apps/tagtree.c
@@ -395,6 +395,10 @@ static void tagtree_unbuffer_event(struct mp3entry *id3, bool last_track)
395 395
396 playcount++; 396 playcount++;
397 397
398 lastplayed = tagcache_increase_serial();
399 if (lastplayed < 0)
400 return;
401
398 /* Ignore the last 15s (crossfade etc.) */ 402 /* Ignore the last 15s (crossfade etc.) */
399 playtime += MIN(id3->length, id3->elapsed + 15 * 1000); 403 playtime += MIN(id3->length, id3->elapsed + 15 * 1000);
400 404
@@ -427,6 +431,17 @@ bool tagtree_export(void)
427 return false; 431 return false;
428} 432}
429 433
434bool tagtree_import(void)
435{
436 gui_syncsplash(0, true, str(LANG_WAIT));
437 if (!tagcache_import_changelog())
438 {
439 gui_syncsplash(HZ*2, true, str(LANG_FAILED));
440 }
441
442 return false;
443}
444
430void tagtree_init(void) 445void tagtree_init(void)
431{ 446{
432 int fd; 447 int fd;