Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9833 in orxonox.OLD for branches/new_class_id/src/lib/util/loading


Ignore:
Timestamp:
Sep 26, 2006, 4:59:49 PM (18 years ago)
Author:
bensch
Message:

orxonox/new_class_id: almost killed off the old ResourceManager

Location:
branches/new_class_id/src/lib/util/loading
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/new_class_id/src/lib/util/loading/game_loader.cc

    r9794 r9833  
    2020#include "game_loader.h"
    2121#include "util/loading/load_param.h"
    22 
     22#include "util/loading/new_resource_manager.h"
    2323#include "debug.h"
    2424#include "campaign.h"
    25 
    26 #include "util/loading/resource_manager.h"
    2725
    2826#include "key_mapper.h"
     
    8583{
    8684  ErrorMessage errorCode;
    87   std::string campaignName = ResourceManager::getFullName(fileName);
     85  std::string campaignName = Resources::NewResourceManager::getInstance()->prependAbsoluteMainPath(fileName);
    8886  if (!campaignName.empty())
    8987  {
     
    105103{
    106104  ErrorMessage errorCode;
    107   std::string campaignName = ResourceManager::getFullName(fileName);
     105  std::string campaignName = Resources::NewResourceManager::getInstance()->prependAbsoluteMainPath(fileName);
    108106  if (!campaignName.empty())
    109107  {
  • branches/new_class_id/src/lib/util/loading/new_resource_manager.cc

    r9802 r9833  
    120120  }
    121121
     122  std::string NewResourceManager::prependAbsoluteMainPath(const std::string& fileName)
     123  {
     124    return (this->_mainGlobalPath + File(fileName)).name();
     125  }
    122126
    123127
  • branches/new_class_id/src/lib/util/loading/new_resource_manager.h

    r9802 r9833  
    4444
    4545    bool checkFileInMainPath(const File& fileInside);
     46    std::string prependAbsoluteMainPath(const std::string& fileName);
    4647
    4748    bool unloadAllByKeepLevel(const Resources::KeepLevel& keepLevel);
Note: See TracChangeset for help on using the changeset viewer.