mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-15 15:41:24 +01:00
Eliminate recursive search of VFS file system in attempt to speed
search for dicts.
This commit is contained in:
parent
53a87e54b6
commit
f761201e75
1 changed files with 2 additions and 0 deletions
|
@ -192,11 +192,13 @@ searchDir( MPFORMAL PalmDictList** dlp, UInt16 volNum, unsigned char separator,
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( (fit.attributes & vfsFileAttrDirectory) != 0 ) {
|
if ( (fit.attributes & vfsFileAttrDirectory) != 0 ) {
|
||||||
|
#ifdef RECURSIVE_VFS_SEARCH
|
||||||
XP_U16 len = XP_STRLEN((const char*)path);
|
XP_U16 len = XP_STRLEN((const char*)path);
|
||||||
path[len] = separator;
|
path[len] = separator;
|
||||||
path[len+1] = '\0';
|
path[len+1] = '\0';
|
||||||
searchDir( MPPARM(mpool) dlp, volNum, separator,
|
searchDir( MPPARM(mpool) dlp, volNum, separator,
|
||||||
path, pathSize, creatorSought );
|
path, pathSize, creatorSought );
|
||||||
|
#endif
|
||||||
} else if ( (ext = (XP_UCHAR*)StrStr( (const char*)path, ".pdb" ))
|
} else if ( (ext = (XP_UCHAR*)StrStr( (const char*)path, ".pdb" ))
|
||||||
!= NULL ) {
|
!= NULL ) {
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue