Changeset 9800 in orxonox.OLD for branches/new_class_id/src/orxonox.cc
- Timestamp:
- Sep 24, 2006, 12:12:14 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/new_class_id/src/orxonox.cc
r9798 r9800 129 129 130 130 // handlers 131 NewResourceManager::deleteInstance(); // deletes the Resource Manager131 Resources::NewResourceManager::deleteInstance(); // deletes the Resource Manager 132 132 133 133 // engines … … 341 341 if ((dataPath = Preferences::getInstance()->getString(CONFIG_SECTION_GENERAL, CONFIG_NAME_DATADIR, ""))!= "") 342 342 { 343 NewResourceManager::getInstance()->setMainGlobalPath(dataPath) ;344 if(! NewResourceManager::getInstance()->checkFileInMainPath(File(DEFAULT_DATA_DIR_CHECKFILE)))343 Resources::NewResourceManager::getInstance()->setMainGlobalPath(dataPath) ; 344 if(!Resources::NewResourceManager::getInstance()->checkFileInMainPath(File(DEFAULT_DATA_DIR_CHECKFILE))) 345 345 { 346 346 PRINTF(1)("Data Could not be located in %s\n", dataPath.c_str()); 347 347 } 348 348 } 349 while (! NewResourceManager::getInstance()->checkFileInMainPath(File(DEFAULT_DATA_DIR_CHECKFILE)))349 while (!Resources::NewResourceManager::getInstance()->checkFileInMainPath(File(DEFAULT_DATA_DIR_CHECKFILE))) 350 350 { 351 351 352 352 PRINTF(1)("The DataDirectory %s could not be verified\n\nh" \ 353 353 "!!! Please Change in File %s Section %s Entry %s to a suitable value !!!\n", 354 NewResourceManager::getInstance()->mainGlobalPath().name().c_str(),354 Resources::NewResourceManager::getInstance()->mainGlobalPath().name().c_str(), 355 355 this->configFileName.c_str(), 356 356 CONFIG_SECTION_GENERAL, … … 361 361 return(-1); 362 362 delete gui; 363 NewResourceManager::getInstance()->setMainGlobalPath(Preferences::getInstance()->getString(CONFIG_SECTION_GENERAL, CONFIG_NAME_DATADIR, ""));363 Resources::NewResourceManager::getInstance()->setMainGlobalPath(Preferences::getInstance()->getString(CONFIG_SECTION_GENERAL, CONFIG_NAME_DATADIR, "")); 364 364 } 365 365 … … 367 367 368 368 //! @todo this is a hack and should be loadable 369 NewResourceManager::getInstance()->addResourceSubPath("Texture", "maps");370 NewResourceManager::getInstance()->addResourceSubPath("Texture", "pictures");371 372 NewResourceManager::getInstance()->addKeepLevelName("Imediately");373 NewResourceManager::getInstance()->addKeepLevelName("LevelEnd");374 NewResourceManager::getInstance()->addKeepLevelName("CampaignEnd");375 NewResourceManager::getInstance()->addKeepLevelName("GameEnd");376 377 378 NewResourceManager::getInstance()->debug();369 Resources::NewResourceManager::getInstance()->addResourceSubPath("Texture", "maps"); 370 Resources::NewResourceManager::getInstance()->addResourceSubPath("Texture", "pictures"); 371 372 Resources::NewResourceManager::getInstance()->addKeepLevelName("Imediately"); 373 Resources::NewResourceManager::getInstance()->addKeepLevelName("LevelEnd"); 374 Resources::NewResourceManager::getInstance()->addKeepLevelName("CampaignEnd"); 375 Resources::NewResourceManager::getInstance()->addKeepLevelName("GameEnd"); 376 377 378 Resources::NewResourceManager::getInstance()->debug(); 379 379 // DynamicLoader::loadDyLib("libtest.so"); 380 380 return 0;
Note: See TracChangeset
for help on using the changeset viewer.