"*.xml" filter as per new vfs_next_dirent
This was SVN commit r1390.
This commit is contained in:
parent
d9ed18f8ca
commit
5a09dcd81b
@ -147,7 +147,7 @@ void CObjectManager::LoadObjects(int type)
|
||||
|
||||
if (dir > 0)
|
||||
{
|
||||
while (vfs_next_dirent(dir, &dent, ".xml")==0)
|
||||
while (vfs_next_dirent(dir, &dent, "*.xml")==0)
|
||||
{
|
||||
CObjectEntry* object=new CObjectEntry(type);
|
||||
CStr filename(pathname);
|
||||
|
@ -93,7 +93,7 @@ void CBaseEntityCollection::loadTemplates()
|
||||
void CBaseEntityCollection::LoadDirectory( Handle directory, CStr pathname )
|
||||
{
|
||||
vfsDirEnt file;
|
||||
while( !vfs_next_dirent( directory, &file, ".xml") )
|
||||
while( !vfs_next_dirent( directory, &file, "*.xml") )
|
||||
{
|
||||
CBaseEntity* newTemplate = new CBaseEntity();
|
||||
if( newTemplate->loadXML( pathname + file.name ) )
|
||||
|
Loading…
Reference in New Issue
Block a user