Changeset 8276 in orxonox.OLD for trunk/src/lib/shell
- Timestamp:
- Jun 8, 2006, 5:21:29 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/shell/shell_completion_plugin.cc
r7661 r8276 100 100 dir.setFileName(ResourceManager::getInstance()->getDataDir() + this->_subDir); 101 101 dir.open(); 102 while(dir)102 for(unsigned int i = 0; i < dir.fileCount(); i++ ) 103 103 { 104 completionList.push_back(this->_subDir + "/" + dir .next());104 completionList.push_back(this->_subDir + "/" + dir[i]); 105 105 } 106 106 } … … 118 118 std::string fileName; 119 119 std::string currFile; 120 while(dir)120 for(unsigned int i = 0; i < dir.fileCount(); i++) 121 121 { 122 currFile = dir .next();122 currFile = dir[i]; 123 123 if (currFile[0] == '.') 124 124 continue;
Note: See TracChangeset
for help on using the changeset viewer.