1
0
Fork 0
forked from len0rd/rockbox

Autorating should work now. at least. it would. but there is no runtime data to work with (yet)

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6455 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Michiel Van Der Kolk 2005-05-11 00:12:33 +00:00
parent f5eae08361
commit f34e4ff6a4
3 changed files with 50 additions and 22 deletions

View file

@ -33,7 +33,7 @@
#define FILERECORD2OFFSET(_x_) (rb->tagdbheader->filestart + _x_ * FILEENTRY_SIZE)
struct entry *currententry;
struct dbglobals dbglobal;
static struct entry *entryarray;
int database_init() {
@ -51,6 +51,9 @@ int database_init() {
return -1;
}
}
dbglobal.playcountmin=0;
dbglobal.playcountmax=0;
dbglobal.gotplaycountlimits=0;
return 0;
}
@ -84,6 +87,7 @@ void loadentry(int filerecord) {
entryarray[filerecord].loadedfiledata=1;
}
currententry=&entryarray[filerecord];
dbglobal.currententryindex=filerecord;
}
void loadsongdata() {