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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user