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:
parent
6493975913
commit
4a5dce9f48
1 changed files with 4 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue