Another step towards making aircraft more self contained. YASim aircraft
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.
This commit is contained in:
parent
46caf8576b
commit
7807a68fa3
2 changed files with 2 additions and 2 deletions
|
@ -146,8 +146,7 @@ void YASim::init()
|
||||||
}
|
}
|
||||||
|
|
||||||
// Build a filename and parse it
|
// Build a filename and parse it
|
||||||
SGPath f(globals->get_fg_root());
|
SGPath f(fgGetString("/sim/aircraft-dir"));
|
||||||
f.append("Aircraft-yasim");
|
|
||||||
f.append(fgGetString("/sim/aero"));
|
f.append(fgGetString("/sim/aero"));
|
||||||
f.concat(".xml");
|
f.concat(".xml");
|
||||||
readXML(f.str(), *_fdm);
|
readXML(f.str(), *_fdm);
|
||||||
|
|
|
@ -568,6 +568,7 @@ bool fgInitConfig ( int argc, char **argv ) {
|
||||||
|
|
||||||
string result = fgFindAircraftPath( aircraft_search, aircraft_set );
|
string result = fgFindAircraftPath( aircraft_search, aircraft_set );
|
||||||
if ( !result.empty() ) {
|
if ( !result.empty() ) {
|
||||||
|
fgSetString( "/sim/aircraft-dir", result.c_str() );
|
||||||
SGPath full_name( result );
|
SGPath full_name( result );
|
||||||
full_name.append( aircraft_set );
|
full_name.append( aircraft_set );
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue