Changeset 9869 in orxonox.OLD for trunk/src/lib/shell/shell_completion_plugin.cc
- Timestamp:
- Oct 3, 2006, 12:19:30 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/shell/shell_completion_plugin.cc
r8330 r9869 21 21 #include "shell_command.h" 22 22 23 #include "substring.h" 24 #include "class_list.h" 23 #include "helper_functions.h" 25 24 #include "loading/resource_manager.h" 26 25 … … 98 97 if (completionBegin.empty()) // if we do not yet have the beginning of the line, start with the chosen startDir. 99 98 { 100 dir.setFileName(Resource Manager::getInstance()->getDataDir() + this->_subDir);99 dir.setFileName(Resources::ResourceManager::getInstance()->mainGlobalPath().name() + this->_subDir); 101 100 dir.open(); 102 101 for(unsigned int i = 0; i < dir.fileCount(); i++ ) … … 113 112 directoryName = completionBegin.substr(0, pos); 114 113 115 dir.setFileName(Resource Manager::getInstance()->getDataDir() + directoryName);114 dir.setFileName(Resources::ResourceManager::getInstance()->mainGlobalPath().name() + directoryName); 116 115 dir.open(); 117 116 … … 136 135 continue; 137 136 } 138 printf("%s\n", (ResourceManager::getInstance()->getDataDir() + fileName).c_str());137 printf("%s\n", (Resources::ResourceManager::getInstance()->mainGlobalPath().name() + fileName).c_str()); 139 138 if (!nocaseCmp(completionBegin, fileName, completionBegin.size()) && 140 ResourceManager::isInDataDir(fileName))139 Resources::ResourceManager::getInstance()->checkFileInMainPath(fileName)) 141 140 { 142 141 printf("Dir %s\n", fileName.c_str());
Note: See TracChangeset
for help on using the changeset viewer.