]> git.mxchange.org Git - flightgear.git/commit
Modified initial property parsing order to be more intuitive. It now
authordavid <david>
Tue, 11 Dec 2001 19:27:37 +0000 (19:27 +0000)
committerdavid <david>
Tue, 11 Dec 2001 19:27:37 +0000 (19:27 +0000)
commit519224d9fc97f1f8d88d8552fb4cb4bc5161a92c
tree1d892104ada2a73fc4380b5834c9f3dac3a67b8f
parentc5d8a7a8ad2c634e64714359ac2fab1c1bcbbe5e
Modified initial property parsing order to be more intuitive.  It now
works like this:

1. Parse preferences.xml, which will usually specify a default
aircraft using the /sim/aircraft property.

2. If /sim/aircraft is specified and not empty, parse the properties
in $FG_ROOT/Aircraft/{/sim/aircraft}-set.xml to set up a default
aircraft.

3. During command-line parsing, whenever the --aircraft option appears
set /sim/aircraft appropriately and parse the properties in
$FG_ROOT/Aircraft/{/sim/aircraft}-set.xml.  Any --config, --prop, or
--aircraft options afterwards will take precedence.
src/Main/fg_init.cxx
src/Main/options.cxx