James Turner
5b14d6e495
HID : split out raw logging from event logging.
...
This makes developing XML config files much easier
2020-04-01 20:43:50 +01:00
James Turner
8bedd52e2b
HID: allow raw-descriptor parsing in the XML
...
Also fix deadband computation (do it after min-max ranging)
2020-04-01 16:32:21 +01:00
James Turner
005ddf7c98
Optimisation: avoid property name lookups
2020-04-01 16:20:29 +01:00
James Turner
4addaa9b00
Fix a warning
2020-04-01 15:30:15 +01:00
James Turner
ca97866dd3
Fix a warning
2020-04-01 15:30:06 +01:00
James Turner
96be636240
Fixing up HID event input on Mac/Windows
...
Removing old macOS separate input - the HID version is better in
every way.
2020-04-01 15:29:58 +01:00
James Turner
2904321959
Launcher: favourite aircraft support
2020-04-01 10:47:29 +01:00
James Turner
3060cf10c6
Remove a logging call.
2020-03-31 13:56:01 +01:00
James Turner
8ddf4d6699
Fix reset-data-path dialog logic
...
Use correct root path key in QSettings, everywhere
Use the direct Win32 API until Qt wrapper is fixed.
2020-03-26 17:35:01 +00:00
James Turner
0483f2996a
Simplify Launcher thumbnail display code
...
Remove old code paths in the AircraftModel/LocalCache, especially
2020-03-26 17:35:01 +00:00
Erik Hofman
a27dfe1feb
Move more modern C++ idioms and use std::unique_ptr for moving data ownership around
2020-03-26 09:55:11 +01:00
Lars Toenning
d4b1e42b83
Fix playback duration during replay
...
Fixes #1856
Playback starts at endTime - duration if checkbox is set to active. Duration and checkbox status will be saved for umcoming sessions.
2020-03-25 17:21:14 +01:00
James Turner
7811b11565
Fix Yasim ground interface recursion bug
...
The base (non-FlightGear) implementation of YASim ground getBody
would always call itself. Fortunately we always replace it with the
FG-specific subclass (FGGround).
2020-03-24 22:37:23 +00:00
James Turner
7fe641f3b3
Clang: fix some warnings
2020-03-24 22:37:23 +00:00
James Turner
2c056507ce
Launcher: reduce timeout for HTTP updates
...
This helps download performance from inside the launcher
2020-03-24 22:37:23 +00:00
James Turner
f93aadbae6
Clang: fix a warning (char used as array subscript)
2020-03-24 22:37:23 +00:00
James Turner
e6e9a091e1
Merge /u/fgarlin/flightgear-src/ branch next into next
...
https://sourceforge.net/p/flightgear/flightgear/merge-requests/192/
2020-03-24 20:42:16 +00:00
Fernando García Liñán
6f676ee85b
Compositor: Added $FG_ROOT/Compositor/Effects as a resource provider.
2020-03-24 19:44:05 +01:00
Richard Harrison
9034ed5d46
Splash Screen fixes:
...
Specify type for options that are passed into the readRefImageFile (ref: devlist Andreas Mueller 14/03)
2020-03-23 18:10:57 +01:00
James Turner
5dc2f20848
Launcher: fix scanning of aircraft dirs on startup
...
https://sourceforge.net/p/flightgear/codetickets/2195/
2020-03-23 16:33:39 +00:00
James Turner
86e81735c5
Launcher: fix a typo
2020-03-23 10:06:31 +00:00
James Turner
cb830b70ff
Launcher: add setting for texture-cache
2020-03-23 10:06:31 +00:00
Julian Smith
1e330f9445
src/Viewer/ViewPropertyEvaluator.cxx: cope with root node being bool.
...
Aircraft rah-66 has a bug where it sets root node to type BOOL, which breaks
ViewPropertyEvaluator::getDoubleValue's handling of default values - the string
value of the node is no longer an empty string so we ended up returning 0.0 or
1.0 instead of default_.
The fix is to special-case BOOL. Have also special-cased handling of the root
node, as this is a fairly important part of how ViewPropertyEvaluator works.
2020-03-22 19:26:28 +00:00
James Turner
5f0c10d94d
Fix incorrect write() return code handling
2020-03-20 22:24:44 +00:00
James Turner
6849311d49
Own the SGReaderWriterOptions object
...
Prevents it being unintentionally freed during the read call, causing
a crash depending on the OSG version (some versions take a kung-fu
death grip)
2020-03-20 18:43:21 +00:00
James Turner
162ba266d0
Fix a warning
2020-03-20 11:40:47 -07:00
James Turner
26b527f151
Fix Linux compilation
2020-03-20 11:40:32 -07:00
James Turner
177fc565da
Launcher: initial carrier support
...
Allow selecting carriers from scenarios, and starting at either a
parking position, or a distance offset from the FLOLS (effectively
a crude ‘on-final’)
Extend the —carrier startup option to accept a runway ident of FLOLS,
in conjunction with the existing —offset-distance argument.
2020-03-20 15:51:47 +00:00
James Turner
f903cdfa50
Linux/macOS: use flock() to implement exclusive launch.
...
Previous implementation wasn’t correct, use a better one now. In the
case of a non-clean exit we will leave a stale .pid file in FG_HOME,
but we clear stale files on the next launch.
2020-03-20 12:08:35 +00:00
James Turner
a22d7943a4
Launcher: set package locale based on user language
...
This should in theory enable localised strings in catalogs, but need
to validate the full workflow here.
2020-03-17 11:46:26 +00:00
James Turner
ffbbe54cbc
Launcher: create popup windows on demand
...
This avoids some flickering issues on macOS, and reduces resource use
generally.
2020-03-17 11:14:11 +00:00
James Turner
cf8ec5998e
Launcher: disable grid mode for update tab
...
Since the UI doesn’t work well in grid mode, and the list of updates
is limited, force list mode for the updates tab.
https://sourceforge.net/p/flightgear/codetickets/2172/
2020-03-17 10:00:17 +00:00
James Turner
d52f1b5d47
Improve in-sim launcher behaviour
...
Restrict the UI to the pieces which make sense.
2020-03-17 10:00:17 +00:00
James Turner
7688007c68
Guard against potential cause of crash:
...
https://sourceforge.net/p/flightgear/codetickets/2138/
2020-03-17 10:00:12 +00:00
Julian Smith
25a64b2cba
src/Viewer/view.cxx: View::recalcLookAt(): Use new view[]/config/eye-fixed tag.
...
We only look at config/eye-lon-deg-path etc if eye-fixed is true. This tag
should be set to true for all views where the eye position is fixed - e.g. all
Tower views plus Fly-By view in fgdata:defaults.xml.
This allows b26 turret views to work without requiring modifications to the
aircraft (which would break usage with older releases of fgfs).
2020-03-16 21:08:48 +00:00
Julian Smith
368443a4b3
src/Viewer/view.cxx: Fixed Walker Orbit view.
...
The fix is to add handling of target-lon-deg-path etc in View::recalcLookAt.
2020-03-16 21:08:48 +00:00
Julian Smith
db255233f7
src/Viewer/ViewPropertyEvaluator.*: added getBoolValue().
2020-03-16 21:08:48 +00:00
Julian Smith
1e07dab5c5
src/Viewer/ViewPropertyEvaluator.cxx: fix getSequenceDoubleValue()'s handling of default value.
...
If node's string value is '' then return <default_> - used to return 0.0 which
is incorrect.
2020-03-16 21:08:48 +00:00
James Turner
a3d75e8573
Voice synth: reduce some log output levels
2020-03-16 11:07:35 +00:00
Julian Smith
904e55d657
src/MultiPlayer/multiplaymgr.cxx: use SGPropertyNode_ptr to avoid explicit delete.
...
As suggested by James Turner
2020-03-15 15:30:05 +00:00
James Turner
2dcf9c30bb
Further path -> UTF8 fixes for Windows
...
Requires corresponding SimGear change. With this last round, we work
with FGData on non-Latin1 path on Windows. (Final fixes are for
Nasal io.readfile, which needed io.stat to work, and SGSky allowing
correct SGPath use)
2020-03-15 15:00:55 +00:00
James Turner
36ba1e3dce
UTF-8 support: replace Nasal io.stat with our own.
...
Replace the default io.stat with one which uses our validator, and
uses SGPath to call _wstat on Windows. This does mean we return less
information in the stat() result, but it seems nothing actually uses
the result apart from checking if the file exists.
2020-03-14 21:01:45 +00:00
Erik Hofman
fb348d1a8a
Fix a false compiler warnig about brackets not protecting the next if statement
2020-03-14 14:04:22 +01:00
Richard Harrison
b049865cb2
fixes #2123 Relocation splash distorted.
...
Mark images loaded from splash with origin of splash to prevent use of DDS texture cache and therefore fix distortion by preventing rescale to power of two
2020-03-13 18:30:56 +01:00
James Turner
9389c6564f
Nasal geodinfo: warn when scenery is not loaded
2020-03-13 16:46:54 +00:00
James Turner
8edcaa4853
Merge /u/ltoenning/flightgear_sim/ branch fix/2146 into next
...
https://sourceforge.net/p/flightgear/flightgear/merge-requests/190/
2020-03-13 13:53:30 +00:00
James Turner
c2ce25136a
Tweak HTS code to allow UTF-8 paths on Windows
2020-03-13 12:22:22 +00:00
James Turner
7e9930e871
Move fnt code from PLIB into 3rdparty
...
This enables us to fix TXF loading to use UTF8 paths, required for
handling non-ASCII paths on Windows.
2020-03-13 12:21:56 +00:00
Lars Toenning
2c9d64dcc6
Fix broken sound mute function
...
Fixes #2146
2020-03-13 11:13:30 +01:00
James Turner
e492ddd5a0
Event more local8Bit -> UTF8 fixes
2020-03-13 09:53:49 +00:00