mmm ...
I got the sense that "--config" was for pointing at a file containing other
"--" options ... not for pointing at a different XML config file.
I haven't tried to confirm this.
Too lazy I guess.
Not a huge deal ...
I'm just trying to figure out if I can hardwire certain assumptions in my code
for the time being to make some issues simpler.
Tony
--- Norman Vine <[EMAIL PROTECTED]> wrote:
> Curtis L. Olson writes:
> >
> > I haven't looked closely at the code that loads preferences.xml, but
> > if David M. confirms this is hardwired, then definitely, I think the
> > ability to specify an alternate config file would be a very good thing
> > to add.
>
> From options.cxx
>
> } else if ( arg.find( "--config=" ) == 0 ) {
> string file = arg.substr(9);
> try {
> readProperties(file, globals->get_props());
> } catch (const sg_exception &e) {
> string message = "Error loading config file: ";
> message += e.getFormattedMessage();
> SG_LOG(SG_INPUT, SG_ALERT, message);
> exit(2);
> }
>
> norman
=====
_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel