Changeset 7661 in orxonox.OLD for trunk/src/lib/shell
- Timestamp:
- May 18, 2006, 12:55:34 AM (19 years ago)
- Location:
- trunk/src/lib/shell
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/shell/shell_buffer.h
r7374 r7661 10 10 #include <stdarg.h> 11 11 #include <list> 12 #include " threading.h"12 #include "lib/util/threading.h" 13 13 14 14 #define SHELL_BUFFER_SIZE 16384 //!< The Size of the input-buffers (should be large enough to carry any kind of input) -
trunk/src/lib/shell/shell_completion_plugin.cc
r7424 r7661 25 25 #include "loading/resource_manager.h" 26 26 27 #include " osdir.h"27 #include "directory.h" 28 28 #include "debug.h" 29 29 … … 94 94 void CompletorFileSystem::addToCompleteList(std::vector<std::string>& completionList, const std::string& completionBegin) const 95 95 { 96 OS::Directory dir;96 Directory dir; 97 97 98 98 if (completionBegin.empty()) // if we do not yet have the beginning of the line, start with the chosen startDir. 99 99 { 100 dir.open(ResourceManager::getInstance()->getDataDir() + this->_subDir); 100 dir.setFileName(ResourceManager::getInstance()->getDataDir() + this->_subDir); 101 dir.open(); 101 102 while(dir) 102 103 { … … 112 113 directoryName = completionBegin.substr(0, pos); 113 114 114 dir.open(ResourceManager::getInstance()->getDataDir() + directoryName); 115 dir.setFileName(ResourceManager::getInstance()->getDataDir() + directoryName); 116 dir.open(); 115 117 116 118 std::string fileName; … … 136 138 printf("%s\n", (ResourceManager::getInstance()->getDataDir() + fileName).c_str()); 137 139 if (!nocaseCmp(completionBegin, fileName, completionBegin.size()) && 138 ResourceManager::is Dir(ResourceManager::getInstance()->getDataDir() +fileName))140 ResourceManager::isInDataDir(fileName)) 139 141 { 140 142 printf("Dir %s\n", fileName.c_str());
Note: See TracChangeset
for help on using the changeset viewer.