Moved globals back into dirbrowse() now that dirlist hack is gone.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1612 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
75864367e2
commit
079b2d1865
1 changed files with 7 additions and 8 deletions
15
apps/tree.c
15
apps/tree.c
|
@ -254,16 +254,15 @@ static int showdir(char *path, int start)
|
|||
return filesindir;
|
||||
}
|
||||
|
||||
static int numentries=0;
|
||||
static int dircursor=0;
|
||||
static int start=0;
|
||||
static int dirpos[MAX_DIR_LEVELS];
|
||||
static int cursorpos[MAX_DIR_LEVELS];
|
||||
static int dirlevel=0;
|
||||
static char currdir[MAX_PATH];
|
||||
|
||||
bool dirbrowse(char *root)
|
||||
{
|
||||
int numentries=0;
|
||||
int dircursor=0;
|
||||
int start=0;
|
||||
int dirpos[MAX_DIR_LEVELS];
|
||||
int cursorpos[MAX_DIR_LEVELS];
|
||||
int dirlevel=0;
|
||||
char currdir[MAX_PATH];
|
||||
char buf[MAX_PATH];
|
||||
int i;
|
||||
int lasti=-1;
|
||||
|
|
Loading…
Reference in a new issue