On Tue, Feb 7, 2012 at 2:29 PM, ThorstenB <bre...@gmail.com> wrote:
> On 07.02.2012 21:13, HB-GRAL wrote:
> > Is it a good or bad idea for the FGx launcher to check against the
> > version file if it is a valid fgdata folder AT ALL ? I will need some
> > kind of check.
>
> Seems a good idea. Same check is hard-coded inside fgfs (of course, fgfs
> also requires correct content of the "version" file). So, if the user
> selected an "fgdata" folder not containing the file, you could tell the
> user right away - launching fgfs would fail anyway...
>
The main reason for a version check between the binary and the data is that
we often make parallel changes to both (similar reason why we do a simgear
minimum version check when compiling flightgear.) If there are version
mismatches, things could break or act in weird or unexpected ways.
A launcher might not be in the same category unless you use options that
change between versions (this is possible, but happens a lot less often
than other sorts of changes.)
Another idea would be to test which version of FlightGear you are launching
(not sure the best mechanism for that?) and enable/disable/change the
launch options based on the version you are launching -- but I suspect you
might not have any changes or differences to account for.
Regards,
Curt.
--
Curtis Olson:
http://www.atiak.com - http://aem.umn.edu/~uav/
http://www.flightgear.org - http://gallinazo.flightgear.org
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel