now read the config file out of the individual aircraft directory rather
than the collective Aircraft-yasim/ directory (which is now obsolete.)
This requires a corresponding update of the base package cvs.
}
// Build a filename and parse it
- SGPath f(globals->get_fg_root());
- f.append("Aircraft-yasim");
+ SGPath f(fgGetString("/sim/aircraft-dir"));
f.append(fgGetString("/sim/aero"));
f.concat(".xml");
readXML(f.str(), *_fdm);
string result = fgFindAircraftPath( aircraft_search, aircraft_set );
if ( !result.empty() ) {
+ fgSetString( "/sim/aircraft-dir", result.c_str() );
SGPath full_name( result );
full_name.append( aircraft_set );