From: Bertrand <bco...@us...> - 2017-03-18 16:17:46
|
Update of /cvsroot/jsbsim/JSBSim/src/input_output In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv10881/src/input_output Modified Files: FGModelLoader.cpp Log Message: Restored the legacy behavior for file naming: the XML extension is required and is automatically added when not specified. Index: FGModelLoader.cpp =================================================================== RCS file: /cvsroot/jsbsim/JSBSim/src/input_output/FGModelLoader.cpp,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** FGModelLoader.cpp 25 Feb 2017 14:23:18 -0000 1.4 --- FGModelLoader.cpp 18 Mar 2017 16:17:42 -0000 1.5 *************** *** 90,94 **** SGPath fullName = path/filename.utf8Str(); ! if (fullName.extension().empty()) fullName.concat(".xml"); --- 90,94 ---- SGPath fullName = path/filename.utf8Str(); ! if (fullName.extension() != "xml") fullName.concat(".xml"); |