Changeset 7618 in orxonox.OLD for branches/qt_gui/src/lib/util
- Timestamp:
- May 15, 2006, 2:52:20 PM (19 years ago)
- Location:
- branches/qt_gui/src/lib/util
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/qt_gui/src/lib/util/file.cc
r7616 r7618 62 62 { 63 63 this->_handle = 0; 64 std::string name = this->_name; 64 65 65 66 this->_status = new struct stat; 66 if (stat(this->_name.c_str(), this->_status)) 67 // Check the End of the FileName and chop away any \ and // 68 if (this->_name[this->_name.size()-1] == '/' || 69 this->_name[this->_name.size()-1] == '\\') 70 name.resize(name.size()-1); 71 72 if (stat(name.c_str(), this->_status)) 67 73 { 68 74 delete this->_status; -
branches/qt_gui/src/lib/util/file.h
r7616 r7618 54 54 private: 55 55 void init(); 56 bool statFile ;56 bool statFile(); 57 57 void homeDirCheck(std::string& fileName); 58 58
Note: See TracChangeset
for help on using the changeset viewer.