$ strace -fF -eopen fgfs -D --aircraft=ufo 2>&1|grep -c "/Airports/AI/"
  49194

Is there really no better way than to check for the existance of 49194(!)
files during startup? Two for every ICAO id?

  [pid   377] open("/usr/local/share/FlightGear/Airports/AI//EGKH/parking.xml", 
O_RDONLY) = -1 ENOENT (No such file or directory)
  [pid   377] open("/usr/local/share/FlightGear/Airports/AI//EGKH/rwyuse.xml", 
O_RDONLY) = -1 ENOENT (No such file or directory)
  ... repeated 24596 times ...

What about asking for all existing files in $FG_ROOT/Airports/AI? Let's see:

  $ ls -l $FG_ROOT/Airports/AI
  /bin/ls: /usr/local/share/FlightGear/Airports/AI: No such file or directory

Whoops ...

m.

_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d

Reply via email to