Changeset 9833 in orxonox.OLD for branches/new_class_id/src/lib/util/loading
- Timestamp:
- Sep 26, 2006, 4:59:49 PM (18 years ago)
- 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 20 20 #include "game_loader.h" 21 21 #include "util/loading/load_param.h" 22 22 #include "util/loading/new_resource_manager.h" 23 23 #include "debug.h" 24 24 #include "campaign.h" 25 26 #include "util/loading/resource_manager.h"27 25 28 26 #include "key_mapper.h" … … 85 83 { 86 84 ErrorMessage errorCode; 87 std::string campaignName = Resource Manager::getFullName(fileName);85 std::string campaignName = Resources::NewResourceManager::getInstance()->prependAbsoluteMainPath(fileName); 88 86 if (!campaignName.empty()) 89 87 { … … 105 103 { 106 104 ErrorMessage errorCode; 107 std::string campaignName = Resource Manager::getFullName(fileName);105 std::string campaignName = Resources::NewResourceManager::getInstance()->prependAbsoluteMainPath(fileName); 108 106 if (!campaignName.empty()) 109 107 { -
branches/new_class_id/src/lib/util/loading/new_resource_manager.cc
r9802 r9833 120 120 } 121 121 122 std::string NewResourceManager::prependAbsoluteMainPath(const std::string& fileName) 123 { 124 return (this->_mainGlobalPath + File(fileName)).name(); 125 } 122 126 123 127 -
branches/new_class_id/src/lib/util/loading/new_resource_manager.h
r9802 r9833 44 44 45 45 bool checkFileInMainPath(const File& fileInside); 46 std::string prependAbsoluteMainPath(const std::string& fileName); 46 47 47 48 bool unloadAllByKeepLevel(const Resources::KeepLevel& keepLevel);
Note: See TracChangeset
for help on using the changeset viewer.