forked from len0rd/rockbox
"waste" a bit more RAM on targets with more than 8MB so more directories can be opened at the same time (most obvious when you have really deep directory trees)
closes FS#6410, FS#6512, FS#6514 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18234 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
8c913fb22b
commit
eb0137fcb5
2 changed files with 8 additions and 0 deletions
|
@ -27,7 +27,11 @@
|
|||
#include "dir.h"
|
||||
#include "debug.h"
|
||||
|
||||
#if ((defined(MEMORYSIZE) && (MEMORYSIZE > 8)) || MEM > 8)
|
||||
#define MAX_OPEN_DIRS 16
|
||||
#else
|
||||
#define MAX_OPEN_DIRS 8
|
||||
#endif
|
||||
|
||||
static DIR_UNCACHED opendirs[MAX_OPEN_DIRS];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue