James Turner
126f69434b
Refactor untar/unzip code
...
This is to enable reuse in more places, especially scenery extraction and TerraSync
2018-07-04 10:32:09 +01:00
Erik Hofman
3e081ae869
Use CPU optimized versions of endian swap functions when available
2018-07-04 09:35:45 +02:00
Erik Hofman
4e8df9dcc8
Remove a bunch og gcc-8 warnings
2018-07-04 09:33:32 +02:00
James Turner
d7a413d5e7
Lat-lon parsing: allow lon,lat order, and detect order
...
Flightplan/route-manager defaults to lon,lat order. Allow the parser
to detect the correct order when NSEW suffixes are provided and
consistent.
2018-06-29 13:28:02 +01:00
James Turner
609ac93c10
Lat-lon parsing: accept lower case NSEW, fix precision
...
Thanks to Wkitty for catching both problems.
2018-06-28 22:43:30 +01:00
James Turner
b1d6a41c65
Fix a bug in lat-lon parsing - accept ‘*’
...
Previously, trailing * symbols confused the parser.
2018-06-27 14:29:45 +01:00
James Turner
a4e2fdfad2
Merge /u/scttgs0/simgear/ branch to-be-merged into next
...
https://sourceforge.net/p/flightgear/simgear/merge-requests/46/
2018-06-24 20:07:40 +00:00
James Turner
22c2971c3c
Lat-lon formatting: support nice degree symbols
...
Allow Latin-1 (for PUI fnt) and UTF-8 (for Qt, osgText and everybody
else) degree symbols as well as the use of *
2018-06-24 10:30:50 +01:00
Scott Giese
123c597e01
msvc has no support plans beyond OpenMP 2.0
...
We must use a signed integral data type
2018-06-23 14:44:48 -05:00
Scott Giese
05e3c29ee4
Support Visual Studio 2017
2018-06-22 22:19:49 -05:00
James Turner
9b1444deb5
Strutils to format and parse SGGeod/lat/lon
...
Format portion is taken from code in fg_props, parsing code is my
own horrible concoction.
2018-06-20 22:00:58 +01:00
James Turner
99d30d5bb7
CMake tweak: include headers in targets
...
This improves navigation in XCode (any maybe some other tools)
2018-06-20 22:00:03 +01:00
James Turner
100bb3a571
Fix flags passed to SHGetKnownFolderPath
...
Custom folder locations were not being picked up.
Fixes: https://sourceforge.net/p/flightgear/codetickets/2019/
2018-06-15 11:08:53 +01:00
Stuart Buchanan
7fb89e4d45
Multiple LoD levels of MP Aircraft
...
Support loading multiple models into PagedLOD.
2018-06-05 21:56:36 +01:00
Stuart Buchanan
1d7c3984ca
Fix minor warning for no return value.
2018-06-05 21:55:23 +01:00
Erik Hofman
03156a6d94
Better AeoNWave detection
2018-06-05 09:39:51 +02:00
Erik Hofman
08258ee4b3
Detect AeonWave and if it is installed use it, otherwise fall back to OpenAL. Also let get_available_devices() use C++ strings instead of const char*
2018-06-02 14:06:15 +02:00
Erik Hofman
3dceaf7a0b
Update to the latest version
2018-06-02 10:53:03 +02:00
Erik Hofman
856473ca43
Add missing headers
2018-05-29 09:44:37 +02:00
James Turner
7dfe705717
Resource manager clean-up code
2018-05-28 21:57:31 +02:00
ThomasS
dc2f142480
Feature for requesting canvas images per HTTP as described in http://wiki.flightgear.org/Read_canvas_image_by_HTTP
2018-05-28 14:23:12 +01:00
Torsten Dreyer
94a1156a6b
new version: 2018.3.0
2018-05-19 21:02:35 +02:00
Torsten Dreyer
5ed4fbd4a3
new version: 2018.2.1
2018-05-19 21:02:35 +02:00
xDraconian
d92a289c25
Bug fix: svg dirty flag
2018-05-17 09:11:07 +01:00
Edward d'Auvergne
2ba5676eb0
SGTime: Stripped trailing '\n' from some debugging messages.
2018-05-14 21:36:54 +02:00
Edward d'Auvergne
66cfa800be
SGEventMgr: Reset the shutdown flag on init as a reset does not call the ctor.
...
This fixes the reset process that was broken by
dfed2184f1
.
2018-05-14 14:05:04 +02:00
James Turner
9755110ec7
Packages: Remove deprecation warnings for now
...
Probably a bit over-zealous for these.
2018-05-09 10:15:07 +01:00
James Turner
f5ff969cd4
Warning improvements when requesting bad URLs
...
Found while debugging some issues with add-default-catalog flow in
the launcher.
2018-05-08 06:50:15 +01:00
Edward d'Auvergne
a232565b3e
SGSubsystemMgr: Bug fix for the global_registrations vector.
...
The vector is now a static function variable that is returned by reference by
the new getGlobalRegistrations() function, which remains in the anonymous
namespace.
This solves the issue of the global_registrations vector being populated during
static init, but then been subsequently allocated and hence reset at the end of
static init.
2018-05-04 09:09:15 +02:00
Edward d'Auvergne
fd4ca1c811
Revert "Speculative fix for global symbol issues for Edward"
...
This reverts commit b6f5b40557
.
The changes did not solve the static init vector allocation issue.
2018-05-04 09:02:08 +02:00
James Turner
b6f5b40557
Speculative fix for global symbol issues for Edward
...
Let’s see if an explicit static at file scope is better or different
to an anonymous namespace scope
2018-05-03 14:29:07 +01:00
James Turner
5710d33dbf
Subsystem commands in the manager
...
Migrate and update these commands from FlightGear’s subsystem factory.
Currently disabled until subsystem-factory is removed, to avoid
duplicate registration.
2018-05-02 23:27:34 +01:00
James Turner
831369f653
Packages: add archive-path XML support
...
Allow the in-archive file path to differ from the after-install path.
Requested to allow easier operation with GitHub/Labs zip generation.
2018-04-27 15:25:13 +01:00
James Turner
6db59c64aa
Subsystems: change naming scheme, add accessors
...
Add some hopefully clearer accessors for the subsystem naming, and some
comments documenting what is stored where.
2018-04-27 13:59:11 +01:00
James Turner
888d7fb262
Packages: archive-type support in catalogs
...
Allow URLs which don’t encode the file extension to work
2018-04-27 12:07:10 +01:00
James Turner
8b4ace6fb8
Subsystems: stub code for smart add+remove
...
Groups track their state, which will enable them to correctly transition
added and removed children in the future. Only stubbed for now, to avoid
breakage on the FG side.
2018-04-25 22:20:12 +01:00
James Turner
368120c479
Track a root property on subsystem-manager
2018-04-25 21:34:17 +01:00
James Turner
48b228f68f
Packages: additional test for updating invalid
...
This is part of trying to trace a crash reported on the devel list,
unfortunately the test passes but it’s sill good to have it
2018-04-25 17:04:07 +01:00
James Turner
bf21c0e099
MSVC build fixes, ooops
2018-04-25 11:41:40 +01:00
James Turner
d85d85e7dc
Subsystem improvements for testing
...
- track more meta-data and a factory function for each subsystem,
registered either explicitly or via a helper static class.
- add a delegate to receive notifications of subsystem changes
- make sub-grouped subsystems work more naturally, especially for
child lookups
- add some test coverage for all of this
2018-04-25 08:58:58 +01:00
Florent Rougon
99c1dd8124
Add compiler options for GCC and Clang when CMAKE_BUILD_TYPE is Debug
...
When CMAKE_BUILD_TYPE is Debug and we are compiling with GCC, add the
following options to CMAKE_C_FLAGS and CMAKE_CXX_FLAGS:
-O0 -fno-omit-frame-pointer -fno-inline
Ditto for Clang, except that -fno-inline-functions is used instead of
-fno-inline.
cf. thread starting at
https://sourceforge.net/p/flightgear/mailman/message/36295412/
2018-04-18 08:25:10 +02:00
James Turner
2797970837
Catalogs: better invalid data handling
2018-04-08 23:57:24 +01:00
James Turner
cf03307b70
More verbose error logging from Repository code
2018-03-30 17:24:58 +01:00
Edward d'Auvergne
dfed2184f1
SGEventMgr: Protection from timer insertion after shutdown.
...
This actually happens, Nasal timers are added after the event manager shutdown()
subsystem API call.
2018-03-25 22:45:04 +02:00
Edward d'Auvergne
340a469153
LogStream: Added a testing mode to the simgear logstreams.
...
The new function logstream::setTestingMode() has been created to allow for a
testing mode to be set. This stores a boolean in the private logstream thread
which modifies the behaviour of the would_log() function, allowing for
everything to be logged. The removeCallbacks() function has also been added,
allowing for the default fgfs output to STDOUT and STDERR to be silenced when
calling setTestingMode().
2018-03-22 14:45:32 +00:00
Thomas Geymayer
62ae6ca35e
Mostly canvas doxygen improvements and C++11 refactoring.
2018-03-02 09:07:01 +01:00
Thomas Geymayer
711a4fe0c8
canvas::Map: Preserve default values without new values
...
Ensure default values are used (instead of 0) if no values are
specified.
2018-03-01 09:10:24 +01:00
James Turner
cba07157d5
Packages: better version handling & migration
...
Add test coverage for disabling a catalog due to version, and also
for auto-migrating to a new version. Expose disabled catalogs on the
Root, so they can be checked for.
2018-02-28 17:26:15 +00:00
Thomas Geymayer
a653d67aae
canvas: Event improvements and new events (dragstart, dragend)
2018-02-25 14:50:49 +01:00
Erik Hofman
6a142bc264
Merge branch 'release/2018.1' into next
2018-02-20 10:11:38 +01:00