Ignore:
Timestamp:
04/10/07 16:54:42 (12 years ago)
Author:
art
Message:

dynamicResourceManagment Plugin added.

TODO: change file association list of resources. This is required
by the drm plugin to be able to reload the resource as soon as one of
the associated file changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nrEngine/src/ResourceManager.cpp

    r30 r31  
    561561                // find through the handle 
    562562                res_hdl_map::iterator it = mResource.find(handle); 
    563                 if (it == mResource.end()){ 
     563                if (it == mResource.end()) 
     564                { 
    564565                        return NULL; 
    565566                } 
     
    722723 
    723724                // check whenever such a group exists 
    724                 res_grp_map::const_iterator it = mResourceGroup.find(group); 
     725                ResourceGroupMap::const_iterator it = mResourceGroup.find(group); 
    725726                if (it == mResourceGroup.end()){ 
    726727                        NR_Log(Log::LOG_ENGINE, "ResourceManager: Can not unload group \"%s\" because not found in database", group.c_str()); 
     
    745746 
    746747                // check whenever such a group exists 
    747                 res_grp_map::const_iterator it = mResourceGroup.find(group); 
     748                ResourceGroupMap::const_iterator it = mResourceGroup.find(group); 
    748749                if (it == mResourceGroup.end()){ 
    749750                        NR_Log(Log::LOG_ENGINE, "ResourceManager: Can not reload group \"%s\" because not found in database", group.c_str()); 
     
    769770 
    770771                // check whenever such a group exists 
    771                 res_grp_map::const_iterator it = mResourceGroup.find(group); 
     772                ResourceGroupMap::const_iterator it = mResourceGroup.find(group); 
    772773                if (it == mResourceGroup.end()){ 
    773774                        NR_Log(Log::LOG_ENGINE, "ResourceManager: Can not remove group \"%s\" because not found in database", group.c_str()); 
     
    796797        { 
    797798                // check if such a group exists 
    798                 res_grp_map::const_iterator it = mResourceGroup.find(name); 
     799                ResourceGroupMap::const_iterator it = mResourceGroup.find(name); 
    799800 
    800801                // return the empty list 
     
    903904                // remove the handle from the group list 
    904905                if (group.length() > 0){ 
    905                         res_grp_map::iterator jt = mResourceGroup.find(group); 
     906                        ResourceGroupMap::iterator jt = mResourceGroup.find(group); 
    906907                        if (jt != mResourceGroup.end()){ 
    907908                                jt->second.remove(handle); 
Note: See TracChangeset for help on using the changeset viewer.