forked from len0rd/rockbox
Repaired broken resume
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5596 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
84c7d88021
commit
cdd79a35d4
4 changed files with 13 additions and 10 deletions
|
@ -184,11 +184,16 @@ static int compare(const void* p1, const void* p2)
|
|||
}
|
||||
|
||||
/* load and sort directory into dircache. returns NULL on failure. */
|
||||
int ft_load(struct tree_context* c)
|
||||
int ft_load(struct tree_context* c, const char* tempdir)
|
||||
{
|
||||
int i;
|
||||
int name_buffer_used = 0;
|
||||
DIR *dir = opendir(c->currdir);
|
||||
DIR *dir;
|
||||
|
||||
if (tempdir)
|
||||
dir = opendir(tempdir);
|
||||
else
|
||||
dir = opendir(c->currdir);
|
||||
if(!dir)
|
||||
return -1; /* not a directory */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue