Rebecca N. Palmer
3b1f01c49d
stop using /sim/terrasync/scenery-dir, fix scenery path order
...
Having non-Nasal-readable scenery paths breaks things
(The property continues to exist, but is now from-C++-to-Nasal only)
2016-10-18 22:10:09 +01:00
James Turner
ca70e64261
Request AMD PowerXpress.
2016-09-27 17:16:46 -05:00
James Turner
5bf9b3cd02
Remove the Ati viewport hack.
2016-09-27 17:16:34 -05:00
James Turner
feb10c4c43
Launcher sets —no-default-config automatically.
2016-09-08 11:41:40 +01:00
James Turner
324f266283
Pass the install dir to Terrasync.
...
With Simgear commit d7d59b08a2f1a77a4247ec1a89d6ff48ed73f5c7, this
allows terrasync to be initialised from files in the install data,
which avoids downloading them again.
2016-08-18 16:23:39 +01:00
Erik Hofman
c17c3595c8
Set /sim/rendering/initialized to true at the appropriate moment and use it instead of /sim/initialized for the messagebox
2016-07-21 13:55:31 +02:00
Erik Hofman
e2216891be
Move the PUI dialog code to James' new messagebox code and use that one instead for SG_LOG_POPUP to get a native popup window if available and fall back to a PUI one if not
2016-07-21 08:56:05 +02:00
Erik Hofman
5ab2d82c89
Show a popup dialog for every SG_POPUP message in the queue
2016-07-20 15:03:15 +02:00
James Turner
6d0c2070fd
Use future-proof SGPath APIs.
...
Remove uses of .str(), .c_str() and some other methods of SGPath.
Pass SGPath directly where possible, or explicitly convert to the
appropriate 8-bit encoding.
2016-06-28 10:08:38 +01:00
James Turner
16814800ce
Use Paths instead of strings.
2016-06-22 17:36:05 +01:00
James Turner
5baca8598f
Improve download-dir behaviour.
...
When set on the command line, will be used for aircraft packages. When
set in the Qt launcher, will also be used for aircraft downloads at
all times.
When changing the path in the launcher, the set of aircraft catalogs
is refresh automatically. Note the default catalog may need to be
re-installed.
2016-03-24 15:10:06 +00:00
Erik Hofman
209194ecba
Reload user preferences after reading the video configuration file
2016-03-21 11:50:11 +01:00
Erik Hofman
e1bb47bc89
Add support for Video adapter rendering presets
2016-03-19 13:10:36 +01:00
James Turner
1544641405
Remove view/tile/scenery members from globals
...
- also fix sound manager creation
2015-12-11 12:11:59 -06:00
Rebecca N. Palmer
d56fbfd415
Revert "Initialise Qt earlier, and whenever available"
...
Temporary workaround for
http://sourceforge.net/p/flightgear/codetickets/1819/
This reverts commit 3e67417bf0
.
2015-11-30 23:10:32 +00:00
Rebecca N. Palmer
3e67417bf0
Initialise Qt earlier, and whenever available
...
(to allow it to be used for error boxes)
2015-11-24 07:21:52 +00:00
James Turner
1e213201cf
Work on the launcher
2015-11-23 00:45:21 +00:00
Rebecca N. Palmer
5b2ae615e5
avoid ERROR: The path '' does not exist... on startup
...
While harmless, it's an annoying distraction
2015-07-13 23:15:36 +01:00
James Turner
0f90a2e9f3
FLIGHTGEAR_VERSION is always set.
2015-06-08 10:37:26 +01:00
James Turner
aa20e0acd8
Work on new download-dir option
...
- simplify management of a single, user-facing
location for large downloaded data.
2015-04-10 15:01:54 +01:00
James Turner
e0274af493
Percentage feedback during nav-cache build.
...
- also used by the GUI launcher for the same.
2015-03-19 12:01:38 -05:00
James Turner
a466dbce73
Very crude work on GUI base package selection.
...
- feedback on wording greatly appreciated.
- needed to make nightly builds usable without bundled data.
2015-03-08 00:42:05 +00:00
Rebecca N. Palmer
033957003f
Clear GroundLightManager on exit to avoid segfault
...
While mostly harmless since you're exiting anyway, it's an annoying
distraction when the real problem is "unexpected exit" (e.g.
https://bugs.debian.org/763285 ), and blocks testing with LeakSanitizer
2015-02-12 16:39:28 +00:00
James Turner
7d9609116b
- Make Qt check guarded by a CMake option
...
- Only init QApplication if showing the launcher.
2015-01-10 14:05:23 +00:00
James Turner
1ba62acfcc
Fix native menubar in Mac builds with Qt
...
- where we don’t use the launcher, we must pass tell OSG we
want to pose as standalone when setting the window traits.
2015-01-07 09:19:04 +00:00
James Turner
78e8f53312
In-app launcher for Mac, based on Qt5.
...
The old Mac launcher doesn’t work on Yosemite, add a tiny
Qt-based launcher inside the main process (no need to fork /
exec) which runs before the OSG window is created.
Will be merged for 3.4, hopefully with no impact on other
platforms.
2015-01-06 19:13:30 +00:00
James Turner
4df9c61d2a
Check for and warn about old nVidia drivers.
...
(Had a bug report with someone using 189 drivers on Windows!)
2014-01-27 17:27:12 +00:00
James Turner
45d67406a4
CrashRpt tweaks, checking.
...
- show a message box if setup fails
- log setup status
2014-01-22 22:33:30 +00:00
James Turner
a46114da9a
Fix typo, add Hudson Build-ID to reports.
2014-01-20 21:54:06 +00:00
James Turner
590be3f8ff
Initial integration of CrashRpt for Windows.
2014-01-18 14:51:19 +00:00
James Turner
2a354e224c
Make Traffic-via-terrasync conditional
...
GUI dialog already set the property, just need to pick it up.
2014-01-15 22:01:02 +00:00
Rebecca Palmer
bf1fe65bc5
Disable screensaver: initial Linux-only implementation
...
Add a function fgOSDisableScreensaver() that attempts to disable the
screensaver (currently only succeeding on Linux), and call it on startup.
CMake option USE_DBUS (on by default), requires libdbus-1
Motivation: most screensavers do not monitor the joystick
https://bugs.launchpad.net/ubuntu/+source/flightgear/+bug/793599
Discussion: http://sourceforge.net/p/flightgear/mailman/message/31717061/
2013-12-15 21:18:22 +00:00
James Turner
5d8fa03090
Shutdown: clear effects cleanly.
...
Avoids effects (and referenced properties / objects within) persisting
due to references in the effects cache, after globals are gone.
2013-12-09 23:27:40 +00:00
James Turner
7ff9792b96
Reset: listener cleanup
2013-12-04 09:11:26 +00:00
James Turner
2015016466
Break config init / aircraft loading apart.
...
Allows aircraft loading to proceed during reset without original
values over-writing the updated ones.
2013-11-24 15:10:00 +00:00
James Turner
875227057c
Structural work (init + shutdown) for new reset system.
...
The new approach is still work in progress (compile time option) and
non-functional, existing reset still works.
2013-11-19 17:38:51 +00:00
James Turner
d2962ffb2d
Reset: refactor static CameraGroup ownership
2013-11-16 13:02:47 +00:00
James Turner
0cda3cbfb2
Multiple-instance support.
...
Write PID file to FG_HOME, use this to detect multiple launches.
When this situation is detected, set a marker property and place various
objects into read-only mode, such as the NavCache and TerraSync.
PID file is created using open+unlink semantics on POSIX, and
DELETE_ON_CLOSE on Windows, so it will be removed when fgfs exits,
even if killed or crashes.
2013-11-15 21:04:15 +00:00
James Turner
e25aa4f004
Fix some static property references.
...
(These cause problems when replacing the property tree during reset)
2013-11-14 16:37:46 +00:00
James Turner
44246d7708
Reset: adjust for tweaked TerraSync API
2013-11-12 23:10:19 +00:00
James Turner
af40bcb60e
Reset: explicit close-window function.
...
Allow orderly shutdown of OSG before cxa_finalize
2013-11-12 22:57:13 +00:00
James Turner
e93dc27153
Tweaks to startup configuration handling
...
- restore-defaults kills the nav cache, terra-sync cache
- new ignore-autosave option bypasses autosave.xml and leaves it
untouched (does not over-write on exit)
2013-10-26 18:29:31 +01:00
Thomas Geymayer
771586854b
Make build information readonly and clean up debug output.
2013-10-20 12:59:44 +02:00
Thomas Geymayer
6b88302037
Provide debug information on thread safety of osg::Referenced.
2013-10-19 01:20:28 +02:00
James Turner
f6fafffeb5
Initial hacking on terra-sync of traffic files.
2013-10-17 17:33:30 +01:00
James Turner
386d87e098
Cleanup exit handling.
...
Replace many lingering calls to exit() from the code,
replacing most with exception throws, which can be
caught by the existing mechanisms.
Update the option-parsing code to return an explicit
value indicating what to do (e.g., exit status to return
to the shell).
2013-10-15 22:16:50 +01:00
James Turner
52e5a9abe8
Reduce amount of log output at level=debug.
2013-09-28 14:47:20 +01:00
James Turner
1a9e479e2a
Terrasync tweaks.
...
- Enable the terrasync persistent cache
- Ensure terraysync scenery dirs exist before NavCache init, so the paths are stable
- Notify TerraSync on reposition, so we sync the full 3x3 set of tiles.
2013-09-28 14:07:45 +01:00
Gijs de Rooy
78507bf22e
Suggest NVIDIA Optimus to use the high-end GPU.
2013-07-18 08:51:43 +01:00
James Turner
b1b6d2f6e2
Namespace fixes for std::string
2013-06-27 09:53:12 +01:00