all functions called via delay-load mechanism now return int (allows closures that can interrupt themselves when time is up)

This was SVN commit r2231.
This commit is contained in:
janwas
2005-05-03 21:36:57 +00:00
parent f34cd1ee08
commit f0e311440e
13 changed files with 29 additions and 21 deletions
+2 -1
View File
@@ -27,10 +27,11 @@ static void LoadFileThunk( const char* path, const vfsDirEnt* ent, void* context
this_->LoadFile(path);
}
void CBaseEntityCollection::loadTemplates()
int CBaseEntityCollection::loadTemplates()
{
// Load all files in entities/ and its subdirectories.
THROW_ERR( VFSUtil::EnumDirEnts( "entities/", "*.xml", true, LoadFileThunk, this ) );
return 0;
}
CBaseEntity* CBaseEntityCollection::getTemplate( CStrW name )