More HAVE_TAGCACHE by Austin Appel
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12213 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
9d15361758
commit
2f4521ea9e
2 changed files with 8 additions and 0 deletions
|
@ -149,7 +149,9 @@ bool boot_changed = false;
|
|||
|
||||
char lastfile[MAX_PATH];
|
||||
static char lastdir[MAX_PATH];
|
||||
#ifdef HAVE_TAGCACHE
|
||||
static int lasttable, lastextra, lastfirstpos;
|
||||
#endif
|
||||
static int max_files = 0;
|
||||
|
||||
static bool reload_dir = false;
|
||||
|
@ -624,10 +626,12 @@ static bool dirbrowse(void)
|
|||
curr_context=CONTEXT_TREE;
|
||||
tc.selected_item = 0;
|
||||
tc.dirlevel=0;
|
||||
#ifdef HAVE_TAGCACHE
|
||||
tc.firstpos=0;
|
||||
lasttable = -1;
|
||||
lastextra = -1;
|
||||
lastfirstpos = 0;
|
||||
#endif
|
||||
|
||||
if (*tc.dirfilter < NUM_FILTER_MODES) {
|
||||
#ifdef HAVE_RECORDING
|
||||
|
@ -986,10 +990,12 @@ static bool dirbrowse(void)
|
|||
if ( reload_root ) {
|
||||
strcpy(currdir, "/");
|
||||
tc.dirlevel = 0;
|
||||
#ifdef HAVE_TAGCACHE
|
||||
tc.currtable = 0;
|
||||
tc.currextra = 0;
|
||||
lasttable = -1;
|
||||
lastextra = -1;
|
||||
#endif
|
||||
reload_root = false;
|
||||
}
|
||||
|
||||
|
|
|
@ -58,11 +58,13 @@ struct tree_context {
|
|||
int filesindir; /* The number of files in the dircache */
|
||||
int dirsindir; /* file use */
|
||||
int dirlength; /* total number of entries in dir, incl. those not loaded */
|
||||
#ifdef HAVE_TAGCACHE
|
||||
int table_history[MAX_DIR_LEVELS]; /* db use */
|
||||
int extra_history[MAX_DIR_LEVELS]; /* db use */
|
||||
int currtable; /* db use */
|
||||
int currextra; /* db use */
|
||||
int currextra2; /* db use */
|
||||
#endif
|
||||
/* A big buffer with plenty of entry structs,
|
||||
* contains all files and dirs in the current
|
||||
* dir (with filters applied) */
|
||||
|
|
Loading…
Reference in a new issue