-----------------------------------------------------------------------
| 53 | } |
| 54 | //----------------------------------------------------------------------- |
| 55 | ResourcePtr ResourceManager::createResource( const String &name, const String &group, bool isManual, |
| 56 | ManualResourceLoader *loader, |
| 57 | const NameValuePairList *params ) |
| 58 | { |
| 59 | // Call creation implementation |
| 60 | ResourcePtr ret = |
| 61 | ResourcePtr( createImpl( name, getNextHandle(), group, isManual, loader, params ) ); |
| 62 | if( params ) |
| 63 | ret->setParameterList( *params ); |
| 64 | |
| 65 | addImpl( ret ); |
| 66 | // Tell resource group manager |
| 67 | ResourceGroupManager::getSingleton()._notifyResourceCreated( ret ); |
| 68 | return ret; |
| 69 | } |
| 70 | //----------------------------------------------------------------------- |
| 71 | ResourceManager::ResourceCreateOrRetrieveResult ResourceManager::createOrRetrieve( |
| 72 | const String &name, const String &group, bool isManual, ManualResourceLoader *loader, |
no test coverage detected