theResource += ".Location";
if(!PluginResource->Find(theResource.ToCString())) {
- PluginResource = AdditionalPluginMap();
- if (!PluginResource->Find(theResource.ToCString())) {
- Standard_SStream aMsg; aMsg << "could not find the resource:";
- aMsg << theResource.ToCString()<< endl;
- if (theVerbose)
- cout << "could not find the resource:"<<theResource.ToCString()<< endl;
- Plugin_Failure::Raise(aMsg);
- }
+ Standard_SStream aMsg; aMsg << "could not find the resource:";
+ aMsg << theResource.ToCString() << endl;
+ if (theVerbose)
+ cout << "could not find the resource:" << theResource.ToCString() << endl;
+ Plugin_Failure::Raise(aMsg);
}
TCollection_AsciiString thePluginLibrary("");
return theServiceFactory;
}
-
-const Handle(Resource_Manager)& Plugin::AdditionalPluginMap()
-{
- static Handle(Resource_Manager) aMap;
- if (aMap.IsNull())
- aMap = new Resource_Manager ("" /*theName*/, Standard_False /*theVerbose*/);
- return aMap;
-}