1
0
Fork 0

Added support for shared JSBSim engine and system configurations in fgdata.

Adds $FG_ROOT/Aircraft/Generic/JSBSim/{Engines,Systems} to the JSBSim
engines and system search paths. Internally JSBSim already searches
$aircraft_dir/Engines and $aircraft_dir/Systems.
A file in $aircraft_dir/{Engines,Systems} have higher priority than one
in the shared directories.
This commit is contained in:
Anders Gidenstam 2014-03-05 22:28:53 +01:00
parent 6493975913
commit 4a5dce9f48

View file

@ -215,11 +215,11 @@ FGJSBsim::FGJSBsim( double dt )
SGPath aircraft_path( fgGetString("/sim/aircraft-dir") );
SGPath engine_path( fgGetString("/sim/aircraft-dir") );
engine_path.append( "Engine" );
SGPath engine_path( fgGetString("/sim/fg-root") );
engine_path.append( "Aircraft/Generic/JSBSim/Engines" );
SGPath systems_path( fgGetString("/sim/aircraft-dir") );
systems_path.append( "Systems" );
SGPath systems_path( fgGetString("/sim/fg-root") );
systems_path.append( "Aircraft/Generic/JSBSim/Systems" );
// deprecate sim-time-sec for simulation/sim-time-sec
// remove alias with increased configuration file version number (2.1 or later)