mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-27 09:58:45 +01:00
Eliminate recursive search of VFS file system in attempt to speed
search for dicts.
This commit is contained in:
parent
bc4937048c
commit
982994dce6
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 ) {
|
||||
#ifdef RECURSIVE_VFS_SEARCH
|
||||
XP_U16 len = XP_STRLEN((const char*)path);
|
||||
path[len] = separator;
|
||||
path[len+1] = '\0';
|
||||
searchDir( MPPARM(mpool) dlp, volNum, separator,
|
||||
path, pathSize, creatorSought );
|
||||
#endif
|
||||
} else if ( (ext = (XP_UCHAR*)StrStr( (const char*)path, ".pdb" ))
|
||||
!= NULL ) {
|
||||
|
||||
|
|
Loading…
Reference in a new issue