Changeset 31 for nrEngine/src/Engine.cpp


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/Engine.cpp

    r18 r31  
    289289        { 
    290290                // check if the engine is initialized 
    291                 if (_resmgr == NULL){ 
     291                if (_resmgr == NULL) 
     292                { 
    292293                        NR_Log(Log::LOG_ENGINE, Log::LL_ERROR, "Engine was not initialized properly"); 
    293294                        return false; 
     
    295296 
    296297                // try to load the resource and check for the error code 
    297                 IResourcePtr plg = _resmgr->loadResource(name, "Plugins", path + file); 
    298  
    299                 if (plg == NULL) 
    300                         return false; 
     298                IResourcePtr plg = _resmgr->loadResource(name, "Plugins", path + file, "Plugin"); 
    301299 
    302300                return true; 
Note: See TracChangeset for help on using the changeset viewer.