added support for both ent and def files at the same time

git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@95 8a3a26a2-13c4-0310-b231-cf6edde360e5
This commit is contained in:
spog
2006-07-22 16:30:32 +00:00
parent 988b2f6fbc
commit d498eb592d
10 changed files with 67 additions and 53 deletions

View File

@@ -47,7 +47,7 @@ Image* QERApp_LoadImage(void* environment, const char* name)
: m_name(name), m_image(image)
{
}
void visit(const char* name, const _QERPlugImageTable& table)
void visit(const char* name, const _QERPlugImageTable& table) const
{
if(m_image == 0)
{
@@ -61,9 +61,9 @@ Image* QERApp_LoadImage(void* environment, const char* name)
}
}
}
} visitor(name, image);
};
Textures_getImageModules().foreachModule(visitor);
Textures_getImageModules().foreachModule(LoadImageVisitor(name, image));
return image;
}