I'm trying to compile CEGUI and have run into a problem.
This line in my code:
Code: Select all
CEGUI::SchemeManager::getSingleton().create( "TaharezLook.scheme" );
instantiates a NamedXMLResourceManager:
Code: Select all
template<typename T, typename U>
T& NamedXMLResourceManager<T, U>::create( const String& xml_filename,
const String& resource_group,
XMLResourceExistsAction action )
{
U xml_loader( xml_filename, resource_group );
return doExistingObjectAction(xml_loader.getObjectName(), &xml_loader.getObject(), action);
}
The first parameter of the function in the return calls xml_loader.getObjectName()
Which calls the following code:
Code: Select all
const String& Scheme_xmlHandler::getObjectName() const
{
if ( !d_scheme )
throw InvalidRequestException( "Scheme_xmlHandler::getName: Attempt to access null object." );
return d_scheme->getName();
}
Unfortunately d_scheme was never set so I get an assert. It looks like this is only set by elementGUISchemeStart().
It looks like I can't create a scheme because I don't have a scheme...
Any suggestions where I'm going wrong?