Update of /cvsroot/jsbsim/JSBSim/src/models
In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv24758/src/models
Modified Files:
FGFCS.cpp FGFCS.h FGInput.cpp FGInput.h FGModel.cpp FGModel.h
FGOutput.cpp FGOutput.h FGPropagate.cpp FGPropulsion.cpp
FGPropulsion.h
Log Message:
JSBSim now uses SGPath to manage file names. It allows to use absolute paths, to use Unicode file names and to benefit from SimGear maintenance for the corresponding code.
Index: FGFCS.cpp
===================================================================
RCS file: /cvsroot/jsbsim/JSBSim/src/models/FGFCS.cpp,v
retrieving revision 1.97
retrieving revision 1.98
diff -C2 -r1.97 -r1.98
*** FGFCS.cpp 18 May 2016 08:06:57 -0000 1.97
--- FGFCS.cpp 25 Feb 2017 14:23:18 -0000 1.98
***************
*** 603,616 ****
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
! string FGFCS::FindFullPathName(const string& sysfilename) const
{
! string name = FGModel::FindFullPathName(sysfilename);
! if (systype != stSystem || !name.empty()) return name;
! name = CheckFullPathName(FDMExec->GetFullAircraftPath() + "/Systems", sysfilename);
! if (!name.empty()) return name;
!
! return CheckFullPathName(FDMExec->GetSystemsPath(), sysfilename);
}
--- 603,615 ----
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
! SGPath FGFCS::FindFullPathName(const SGPath& path) const
{
! SGPath name = FGModel::FindFullPathName(path);
! if (systype != stSystem || !name.isNull()) return name;
! name = CheckPathName(FDMExec->GetFullAircraftPath()/string("Systems"), path);
! if (!name.isNu |