Erik Hofman
0451816a82
Add our own version of pu.h and use it to prevent bug #2362 on all systems. This can be done since pu.h is to be considered in code freeze forever anyhow.
2020-09-01 10:12:42 +02:00
Scott Giese
7b914bc5fb
Removed unreachable code
2020-08-29 11:20:40 -05:00
James Turner
66f938be8e
Sentry: fix naming clash.
2020-08-26 15:29:55 +01:00
James Turner
a882b75c9b
Sentry: fix fatal-error event type.
2020-08-26 13:57:44 +01:00
James Turner
5dbab6e90e
CMake: overhaul how we find 3rd-party files
...
Handle the standard windows-3rd-party setup (used by fgmeta) with no
extra options, and also handle the slightly odd setup we use on Jenkins.
Try to tolerate all permutations of setting MSVC_3RDPARTY_ROOT to
different places in the hierarchy.
We no longer try to guess Boost_INCLUDEDIR by looking at parent dirs of
MSVC_3RDPARTY_ROOT, since this seemed kind of bad to me. Let’s try
it and see.
2020-08-26 13:57:24 +01:00
Automatic Release Builder
9d775cdfe7
Fix duplicate init of Sentry on reset
2020-08-26 09:52:16 +01:00
Automatic Release Builder
73b4c3839d
Sentry: more breadcrumbs
2020-08-26 09:52:09 +01:00
Automatic Release Builder
d9b7435dab
Sentry logging of exceptions, fatal errors
2020-08-26 09:52:02 +01:00
Automatic Release Builder
bade1ec4c6
Attempt to fix ref-ptr crash on exit
...
Fixing Sentry issue FLIGHTGEAR-9
2020-08-26 09:51:55 +01:00
James Turner
cf424e4344
Rename buildId header file
...
Avoid the very common name ‘build.h’ in favour of something clearer
and FlightGear specific.
2020-08-24 15:05:16 +01:00
James Turner
178d1beb80
Cmake: Remove version.h machinery
...
Merge this file into config.h, this means we can save an include path
everywhere.
2020-08-24 15:04:24 +01:00
James Turner
95fd692af1
CMake: move install() rule for compatability
...
Older CMake versions can’t install(TARGET…) from a different directory.
2020-08-23 21:50:36 +01:00
James Turner
218df89b29
Embedded resources: better cmake command
...
Use add_custom_command and an intermediate OBJECT library to avoid
rerunning fgrcc unless the XML input file has actually changed.
2020-08-23 11:31:37 +01:00
James Turner
47ff3e9f67
Improve CMake strucutre
2020-08-23 11:31:37 +01:00
Scott Giese
dc1519bfe8
REVIEW: Memory Leak - screensaver_control
...
2,056 bytes in 1 blocks are still reachable
352 bytes in 1 blocks are indirectly lost
320 bytes in 1 blocks are still reachable
2020-08-22 22:59:33 -05:00
Scott Giese
f21eb3a484
REVIEW: Memory Leak - Options ctor
...
15,768 bytes in 219 blocks are still reachable
2020-08-22 17:23:55 -05:00
Automatic Release Builder
bbce95b5ea
Updates for sentry.io 0.4.0 API
2020-08-18 16:51:27 +01:00
Automatic Release Builder
439c5bf4f4
Adjust how we enable/disable Sentry.io
...
This allows for crash-reporting in the launcher,
but still disabling via default.xml or the command line.
2020-08-18 16:51:21 +01:00
James Turner
09067eecda
Protocols: additional Hz rate validation
...
Patch by Huntley Palmer, to warn when passing Hz=0 for the protocol
args, which does not work so well.
2020-08-17 12:15:40 +01:00
James Turner
86f6b94300
Use new thread-safe particles manager.
...
Requires corresponding SG commit
2020-08-17 10:00:42 +01:00
James Turner
06e6883396
Call new simgear clearSharedTreeGeometry
...
Should remove the Final Effect (TM) and fix one source of memory
corruption on reset.
2020-08-14 16:47:02 +01:00
James Turner
977bfb06bf
Reset: ensure mobile tacan drop its AI references
...
Add a slightly ugly hook, to force mobile nav records to drop their
refs into the property tree on reset.
2020-08-12 16:37:52 +01:00
James Turner
c913b752fc
Improve reset main-loop interaction.
...
Actually remove our main-loop properties, and clear them from the
EventHandler, so we don’t report them as leaked properties.
2020-08-11 18:44:29 +01:00
Hans Kunkell
4743ede3b3
generates io channel names and adds to property tree
2020-08-10 10:49:09 +01:00
Hans Kunkell
2992e1b100
implements reinit of IO channels
2020-08-10 10:27:51 +01:00
James Turner
379748fc6b
Remove obsolete terraSync code
2020-08-03 17:57:59 +01:00
Florent Rougon
3300ac543e
Print missing --data path in the "fatal message box"
...
As suggested by Slawek Mikula:
https://sourceforge.net/p/flightgear/codetickets/2164/#c397
2020-07-28 10:25:25 +02:00
Florent Rougon
f105e8dfb2
Improve locale handling
...
- fgfs --language=fr-FR now works as expected for the launcher (also with
--language=fr_FR as before): the value added by option --language to
the _languages member of FGLocale is normalized in "underscore" style
(e.g., fr_FR).
- Add-on translations must now use a hyphen in their property node names
in addon-metadata.xml (talking about children of <localized>): i.e.,
use for instance <fr-FR> there, not <fr_FR>. An exception
(addons::errors::error_loading_metadata_file) is thrown if one of
these nodes has a name containing an underscore.
2020-07-14 12:23:23 +01:00
James Turner
54264e6591
Add —disable-gui option
...
Prevents showing a GUI message box if the user wants to run from the
console.
As requested here:
https://sourceforge.net/p/flightgear/codetickets/2306/
2020-07-14 12:05:53 +01:00
Florent Rougon
37aba7dbd4
Remove unused code and fix typos
2020-07-11 13:22:33 +02:00
James Turner
0bb9600795
Add-ons localization support
...
Add-on meta-data can be localized now, in the same manner as aircraft
metadata.
2020-07-09 18:14:56 +01:00
James Turner
73c15c4d5c
Improve a method name, as suggested by Florent
2020-07-03 12:34:37 +01:00
James Turner
9e00715079
Allow cmd line & add-ons to supply FGData extensions
...
Allow add-ons to define an FGData subdir, and support multiple —data=
command line arguments, to avoid the need to modify FG_ROOT (which might
be read-only). Allow additional data paths to be either higher or lower
priority than FG_ROOT, so that add-ons cannot replace files in FG_ROOT.
2020-07-03 12:29:21 +01:00
James Turner
de89d72593
Keep more old log files
...
Suggested on the tracker, keep log files around longer. Currently we
keep the previous ten files.
Note we still don’t log for secondary running copies, since this would
violate the ‘only one copy can write to FGHome’ principle.
https://sourceforge.net/p/flightgear/codetickets/2243/
2020-06-26 10:13:13 +01:00
James Turner
05e40bfde3
Log-to-file level can be raised to debug/bulk
...
Fixes ticket:
https://sourceforge.net/p/flightgear/codetickets/2100/
2020-06-25 11:01:52 +01:00
James Turner
ee6f4388ee
Change how fatalMessageBoxThenExit works
...
This avoids crashing when using Qt : we cannot call exit() safely since
QGuiApplication won’t shut down correctly. Instead throw a special
marker object and catch this in boostrap.
For an instance of this, see:
https://sourceforge.net/p/flightgear/codetickets/2070/
2020-06-24 15:48:02 +01:00
James Turner
3883b19556
Remove use of unary_function, binary_function
...
Preparing for switch to C++17
2020-06-22 10:25:51 +01:00
James Turner
bd666f952e
Raise minimum OSG version to 3.4.1
2020-06-18 17:39:48 +01:00
James Turner
112d1028bf
I18N: fix behaviour when defaultLocale == current
2020-06-18 12:57:30 +01:00
Julian Smith
a4457d995b
src/Main/options.cxx: fix gcc initialisation warnings and minor reformat.
2020-06-17 22:46:42 +01:00
James Turner
dbec99abc9
Translate weather scenarios names+descriptions
...
Allow weather scenarios to be translated, and display this in the
launcher.
2020-06-17 16:15:01 +01:00
James Turner
00d34b67e1
Fix translation of migration-notification dialog.
...
Was being shown before locale was selected, so always using default
translation. Fixed by deferring the dialog, and also added an assert
for debug builds, if trying to access translated string too early.
2020-06-17 10:57:34 +01:00
James Turner
9326c88f9b
Move Qt root path variable to top-level CMakeList
2020-06-10 17:59:09 +01:00
Julian Smith
4de00657c9
Multiplayer replay: added properties showing memory usage info.
2020-06-05 21:21:14 +01:00
James Turner
a9e5a27e55
UI handling tweaks
...
- add class to handle top-level windows
- remove requirement to use custom graphics-window
- order alongside PUI UI
2020-06-05 17:54:27 +01:00
James Turner
023fbe35ea
Tweaks to avoid a crash when asking for FGData path
...
exit(-1) early in startup seems to cause QApplication to be cleaned
up in a weird way
2020-06-04 17:43:27 +01:00
James Turner
26b0148747
Preserve developer-mode on reset
...
Thanks to Henning for pointing out problem.
2020-06-01 11:15:45 +01:00
James Turner
13bb1adf54
Better fix for orientation nodes init
...
(Avoid the chance that we overwrite a value set earlier)
2020-05-31 12:24:36 +01:00
James Turner
c0d347859f
Ensure various properties have a value on start.
...
Ensure /orientation/heading-magnetic-deg, etc have a type of double
immediately. Showed up as a bug in the SenecaII, since the property
is created but has NIL value until the first update() call.
2020-05-31 12:18:07 +01:00
James Turner
0423524b82
Fix crash on first-run on macOS
2020-05-25 14:13:21 +01:00