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:
Björn Stenberg 2002-08-08 12:06:38 +00:00
parent 75864367e2
commit 079b2d1865

View file

@ -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;