summaryrefslogtreecommitdiff
path: root/apps/plugins/searchengine/dbinterface.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/searchengine/dbinterface.c')
-rw-r--r--apps/plugins/searchengine/dbinterface.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/plugins/searchengine/dbinterface.c b/apps/plugins/searchengine/dbinterface.c
index 7cded01642..fe3ff2dd45 100644
--- a/apps/plugins/searchengine/dbinterface.c
+++ b/apps/plugins/searchengine/dbinterface.c
@@ -33,7 +33,7 @@
33#define FILERECORD2OFFSET(_x_) (rb->tagdbheader->filestart + _x_ * FILEENTRY_SIZE) 33#define FILERECORD2OFFSET(_x_) (rb->tagdbheader->filestart + _x_ * FILEENTRY_SIZE)
34 34
35struct entry *currententry; 35struct entry *currententry;
36 36struct dbglobals dbglobal;
37static struct entry *entryarray; 37static struct entry *entryarray;
38 38
39int database_init() { 39int database_init() {
@@ -51,6 +51,9 @@ int database_init() {
51 return -1; 51 return -1;
52 } 52 }
53 } 53 }
54 dbglobal.playcountmin=0;
55 dbglobal.playcountmax=0;
56 dbglobal.gotplaycountlimits=0;
54 return 0; 57 return 0;
55} 58}
56 59
@@ -84,6 +87,7 @@ void loadentry(int filerecord) {
84 entryarray[filerecord].loadedfiledata=1; 87 entryarray[filerecord].loadedfiledata=1;
85 } 88 }
86 currententry=&entryarray[filerecord]; 89 currententry=&entryarray[filerecord];
90 dbglobal.currententryindex=filerecord;
87} 91}
88 92
89void loadsongdata() { 93void loadsongdata() {