- if (fgGetBool("/sim/paths/use-custom-scenery-data") == false) {
- SGPath rwyPrefPath( globals->get_fg_root() );
- rwyPrefPath.append( "AI/Airports/" );
- rwyPrefPath.append( p->getId() );
- rwyPrefPath.append( "rwyuse.xml" );
- if (rwyPrefPath.exists()) {
- try {
- readXML(rwyPrefPath.str(), visitor);
- }
- catch (const sg_exception &) {
- }
- }
- } else {
- loadAirportXMLDataIntoVisitor(p->getId(), "rwyuse", visitor);
- }
-}
-
-void XMLLoader::load(FGSidStar* p) {
- SGPath path;
- if (findAirportData(p->getId(), "SID", path)) {
- p->load(path);
- }