Changeset 23
- Timestamp:
- 06/26/08 10:58:46
- Files:
-
- trunk/Makefile (deleted)
- trunk/src/ReadShowFile.cpp (modified) (4 diffs)
- trunk/src/ReaderWriterXML.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/ReadShowFile.cpp
r11 r23 34 34 { 35 35 std::string ext = osgDB::getFileExtension(arguments[pos]); 36 if (osgDB::equalCaseInsensitive(ext,"xml") )36 if (osgDB::equalCaseInsensitive(ext,"xml") || osgDB::equalCaseInsensitive(ext,"p3d")) 37 37 { 38 38 xmlFiles.push_back(arguments[pos]); … … 61 61 if (!file.empty()) 62 62 { 63 std::string path = osgDB::getFilePath(file); 64 if (!path.empty()) 65 { 66 osgDB::getDataFilePathList().push_front(path); 67 } 68 63 69 if (p3d::readEnvVars(file)) readVars = true; 64 70 } … … 125 131 } 126 132 133 #ifndef __APPLE__ 134 127 135 xmlFreeDoc(doc); 128 136 129 return readVars; 137 #endif 138 139 return readVars; 130 140 } 131 141 … … 145 155 { 146 156 std::string ext = osgDB::getFileExtension(filename); 147 if (!osgDB::equalCaseInsensitive(ext,"xml") && !osgDB::equalCaseInsensitive(ext,"p3d")) return 0; 157 if (!osgDB::equalCaseInsensitive(ext,"xml") && 158 !osgDB::equalCaseInsensitive(ext,"p3d")) return 0; 148 159 return osgDB::readNodeFile(filename, options); 149 160 } trunk/src/ReaderWriterXML.cpp
r15 r23 1269 1269 SlideShowConstructor constructor; 1270 1270 1271 osgDB::FilePathList previousPaths = osgDB::getDataFilePathList(); 1272 1271 1273 bool readSlide = false; 1274 1272 1275 1273 1276 xmlChar *key; … … 1381 1384 1382 1385 xmlFreeDoc(doc); 1386 1387 osgDB::getDataFilePathList() = previousPaths; 1388 1383 1389 1384 1390 return constructor.takePresentation();
