bcoconni
d3f6ab38c2
Fixed a race condition so that FG runs most of the time (instead of crashes most of the time)
2013-11-24 20:06:28 +01:00
James Turner
77075a2d66
Cocoa: more Function-key shortcuts in menus
2013-11-24 17:25:02 +00:00
James Turner
d99109c9e4
Reset: do re-init Ghost bindings.
2013-11-24 15:10:00 +00:00
James Turner
57c9ed1ae3
Cocoa menu fixes for reset
2013-11-24 15:10:00 +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
Thomas Geymayer
42ab4fd222
Canvas/GUI: add/remove placement factories on init/shutdown.
2013-11-24 15:50:44 +01:00
James Turner
af6095c5d1
Reset: do general init on reset path
2013-11-22 22:52:33 +00:00
James Turner
0fbc448af0
Nasal changes for reset
...
- reduce use of global context (will die soon)
- replace static wrappedNode ref which breaks reset
2013-11-22 22:52:33 +00:00
James Turner
c3c0f68f76
NavData: can refresh some in-place.
...
(Hacking to support faster scenery-path switching)
2013-11-22 22:52:33 +00:00
James Turner
1d8b080782
Reset: delete mat-lib, re-create on reset
2013-11-22 22:52:29 +00:00
James Turner
1f699984e9
One more Mac helper moved into CocoaHelpers.mm
2013-11-19 22:01:11 +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
2331956539
One more Mac helper moved into CocoaHelpers.mm
2013-11-18 15:52:30 +00:00
James Turner
8b4b49cad2
Read-only mode fixes.
2013-11-18 15:40:14 +00:00
James Turner
2455d86d8b
Fix a propObj -> node conversion bug.
...
Thanks to Bertrand Coconnier for spotting this.
2013-11-18 08:40:34 +00:00
Clément de l'Hamaide
2d145e072e
FGCom built-in: restore speaker volume settings
2013-11-17 23:37:37 +01:00
janodesbois
6afc17a763
static.cxx msvc bug correction.
2013-11-17 17:26:56 +01:00
Eric van den Berg
8770e61d1b
static port can be side-slip/alpha dependant, to add a part of total
...
pressure on the reported static pressure.
2013-11-16 23:21:11 +01:00
James Turner
2c4ac08895
Globals: delete/shutdown tweaks.
...
Avoid aircraft-model crash in accessing fx/sound
during shutdown.
2013-11-16 14:25:12 +00:00
James Turner
fe357ba2a9
Refactor aircraft-dir visiting.
...
Cap maximum depth to avoid bug 865
2013-11-16 14:24:37 +00:00
James Turner
d2962ffb2d
Reset: refactor static CameraGroup ownership
2013-11-16 13:02:47 +00:00
James Turner
98078cdd55
Reset: make fgSetDefaults non-static.
2013-11-16 13:02:43 +00:00
James Turner
88aef8caf8
Reset: guard against picks during re-init
2013-11-16 12:28:56 +00:00
James Turner
0191b597e7
Environment manager: use aircraft_pos helper
2013-11-16 12:28:51 +00:00
James Turner
b4b0d635bd
Reset: AIbase, drop references
2013-11-16 12:10:53 +00:00
James Turner
780393e2fe
Release property refs on shutdown.
2013-11-16 11:56:42 +00:00
James Turner
fecb475145
Refactor Cocoa helpers.
...
Change away from using deprecated FSFindFolder.
2013-11-16 10:58:17 +00:00
James Turner
ea822a99e1
Fix some warnings identified by Clang
...
_ unused private members. Removed in most cases, commented
out in a couple of cases where it feels as if the code might be used in the future.
2013-11-16 09:41:33 +00:00
James Turner
2bff8d2220
Fix Linux build
...
Linux needs explicit includes for open() and flags.
2013-11-16 09:31:18 +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
13d5fd4c25
More tweaks for Linux.
...
(Needs explicit include of stdio, and stdarg in the header)
2013-11-14 23:32:02 +00:00
James Turner
ef55d175dd
Linux needs stdarg.h for va_args
2013-11-14 23:14:51 +00:00
James Turner
1f7fdc3e07
Kill some archaic options.
2013-11-14 23:14:46 +00:00
bcoconni
139af0026f
Synchronized FG with the removal of 'using std::*' in simgear's easyxml
2013-11-14 22:07:50 +00:00
James Turner
1db9d25f56
Translation helpers, add global functions.
...
These are designed for compact access to translations, including a
positional printf.
2013-11-14 22:03:00 +00:00
James Turner
136cd6ac51
Message box support.
...
This allows us to display a platform-native dialog for problems
which occur early in startup (before we can show a PUI/Canvas dialog).
In particular this improves feedback where FG_HOME, FG_DATA or
aircraft selection is wrong, all of which happen very early in startup.
2013-11-14 22:02:29 +00:00
Clément de l'Hamaide
7e90c8aa2b
Force 32 bits depth on .ico - only for Windows
2013-11-14 21:24:56 +01: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
Clément de l'Hamaide
1c49890bec
Icons update
2013-11-13 22:49:07 +01:00
James Turner
44ed1f293d
Fix standalone terrasync build
2013-11-13 00:16:28 +00:00
James Turner
4a3b8c5765
Reset: changes for SGSubsystem ownership.
...
Keep in sync with updated ownership model in subsystem groups.
2013-11-12 23:36:18 +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
58fa30b24d
Reset: uninstall deletion-manager
2013-11-12 22:55:50 +00:00
James Turner
72b85b28da
Reset: route-manager guard against no plan.
2013-11-12 22:55:36 +00:00
James Turner
e008f610d1
Reset: ATIS shutdown fix
2013-11-12 22:51:23 +00:00
James Turner
41eaa58c13
Reset: panel-node cleans up listener.
...
Also get rid of the global FGPanelNode pointer.
2013-11-12 22:51:15 +00:00
James Turner
2322fca9c9
Reset: guard against NULL HUD / lighting
2013-11-12 22:51:10 +00:00
James Turner
6eb4e833ae
Reset: sound manager can be shutdown cleanly
2013-11-12 22:50:18 +00:00
James Turner
9a77efacd9
Reset: drop FGLight prop refs on unbind()
2013-11-12 22:49:48 +00:00