1
0
Fork 0

Add support for loading aircraft which have the configuration file inside it's own subdirectory

This commit is contained in:
ehofman 2003-09-15 14:21:16 +00:00
parent b7e3f95300
commit 4d6b14a08c

View file

@ -532,6 +532,14 @@ bool fgInitConfig ( int argc, char **argv ) {
aircraft_path.append("Aircraft");
aircraft_path.append(aircraft);
aircraft_path.concat("-set.xml");
if ( !ulFileExists(aircraft_path.c_str()) ) {
aircraft_path = globals->get_fg_root();
aircraft_path.append("Aircraft");
aircraft_path.append(aircraft);
aircraft_path.append(aircraft);
aircraft_path.concat("-set.xml");
}
SG_LOG(SG_INPUT, SG_INFO, "Reading default aircraft: " << aircraft
<< " from " << aircraft_path.str());
try {