Changeset 9869 in orxonox.OLD for trunk/src/lib/util/loading/game_loader.cc
- Timestamp:
- Oct 3, 2006, 12:19:30 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/util/loading/game_loader.cc
r9110 r9869 20 20 #include "game_loader.h" 21 21 #include "util/loading/load_param.h" 22 23 #include " shell_command.h"22 #include "util/loading/resource_manager.h" 23 #include "debug.h" 24 24 #include "campaign.h" 25 25 26 #include "util/loading/resource_manager.h"27 28 26 #include "key_mapper.h" 29 27 30 31 32 SHELL_COMMAND(quit, GameLoader, stop) 33 ->describe("quits the game") 34 ->setAlias("orxoquit"); 35 28 ObjectListDefinition(GameLoader); 36 29 37 30 GameLoader* GameLoader::singletonRef = NULL; … … 43 36 GameLoader::GameLoader () 44 37 { 45 this-> setClassID(CL_GAME_LOADER, "GameLoader");38 this->registerObject(this, GameLoader::_objectList); 46 39 this->setName("GameLoader"); 47 40 this->bRun = true; … … 57 50 delete this->currentCampaign; 58 51 this->currentCampaign = NULL; 59 52 60 53 GameLoader::singletonRef = NULL; 61 54 } … … 90 83 { 91 84 ErrorMessage errorCode; 92 std::string campaignName = Resource Manager::getFullName(fileName);85 std::string campaignName = Resources::ResourceManager::getInstance()->prependAbsoluteMainPath(fileName); 93 86 if (!campaignName.empty()) 94 87 { … … 110 103 { 111 104 ErrorMessage errorCode; 112 std::string campaignName = Resource Manager::getFullName(fileName);105 std::string campaignName = Resources::ResourceManager::getInstance()->prependAbsoluteMainPath(fileName); 113 106 if (!campaignName.empty()) 114 107 {
Note: See TracChangeset
for help on using the changeset viewer.