David Megginson wrote:

> 
> That, in fact, is the root of the problem -- UIUC uses an absolute
> directory rather than one relative to $FG_ROOT, so we cannot easily
> make *-set.xml files.  If we changed that, it could be as easy as
> 
>   fgfs --aircraft=f104-uiuc


That's a one liner:

--- /home/erik/src/CVS/fgfs/FlightGear/src/Main/options.cxx     Tue Feb 
  5 18:08:29 2002
+++ options.cxx Fri Feb  8 11:07:09 2002
@@ -674,7 +674,8 @@
      } else if ( arg.find( "--aero=" ) == 0 ) {
         fgSetString("/sim/aero", arg.substr(7));
      } else if ( arg.find( "--aircraft-dir=" ) == 0 ) {
-        fgSetString("/sim/aircraft-dir", arg.substr(15));
+        string aircraft_dir = globals->get_fg_root()+"/"+arg.substr(15);
+        fgSetString("/sim/aircraft-dir", aircraft_dir);
      } else if ( arg.find( "--model-hz=" ) == 0 ) {
         fgSetInt("/sim/model-hz", atoi(arg.substr(11)));
      } else if ( arg.find( "--speed=" ) == 0 ) {


Erik


_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to