1
0
forked from 0ad/0ad

"*.xml" filter as per new vfs_next_dirent

This was SVN commit r1390.
This commit is contained in:
janwas 2004-11-23 23:52:13 +00:00
parent d9ed18f8ca
commit 5a09dcd81b
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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 ) )