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
e4e0db5cac
Aircraft-states feature.
2016-06-17 18:15:35 +01:00
James Turner
ca6424f76a
Fix a reset crash with pager threading.
...
Ensure pager thread is stopped before we touch
the sgUserData reference to the main props tree.
2016-03-28 23:50:47 +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
James Turner
733e3b3f0c
HTTP subsystem has a default name.
...
Switch to using type-safe accessors now.
2016-03-24 15:08:38 +00:00
Torsten Dreyer
a1e81a2fdc
Make some more noise if (stale) fgfs.pid file exists
2016-03-08 18:37:32 +01:00
Edward d'Auvergne
97f8cdaaea
Fix for the particle system.
...
The problem was that the change to make FGScenery a standard subsystem caused
the particle OSG group to no longer be inserted into the scene graph. The
solution was to convert the particle group to be set up as a standard branch of
the scene graph, alongside the terrain, models, aircraft, and interior branches.
The particle system is now set up as part of the init() subsystem function call,
so it is compatible with the new subsystem design.
2016-02-16 17:33:40 +01:00
James Turner
c400405b0a
Chatter-queue moved out of globals
...
- now lives as part of the sound-manager, yay.
2016-01-03 12:00:15 -06:00
James Turner
ba56c42eb4
Pull Ephemeris out of FGGlobals
2015-12-31 15:19:51 -06:00
James Turner
6da9461f92
Fix a typo
2015-12-19 00:32:25 -08:00
James Turner
83ea6d32d0
Make PerformanceDB a real subsystem
2015-12-19 00:29:00 -08:00
James Turner
0f590280c7
Aircraft-model subsystem behaves better
...
- make shutdown logic more robust
- shutdown is no longer special cased in globals.
2015-12-18 20:13:23 -08:00
James Turner
89065ea5c2
Proper shutdown() for the model manager
...
- also move property setup to bind/unbind
2015-12-18 19:56:56 -08:00
James Turner
8877b442f8
ATC/Traffic doesn’t crash reset.
...
- remove some global headers from AI headers, to avoid pollution
- change how ATC owns the ‘player’ FGAIAircraft so reset works
- ensure AIAircraft controllers are cleared on unbind for reset
2015-12-11 12:11:59 -06:00
James Turner
1544641405
Remove view/tile/scenery members from globals
...
- also fix sound manager creation
2015-12-11 12:11:59 -06:00
James Turner
43fcbd2246
Progress towards testing
...
- remove route-manager from global variables
2015-12-10 16:40:22 -06:00
James Turner
d7a680e848
Templated subsystem handling
...
- remove explicit FGControls var from globals, as part of work
towards unit-testing infrastructure.
2015-12-10 15:53:05 -06:00
James Turner
2af076e6cb
Add airport dynamics manager
...
- decouple dynamic airport data from the static (nav-db) data.
2015-12-05 00:25:29 +00:00
James Turner
fc887b106b
Checkpoint - ground-net skips the cache
2015-12-01 14:01:32 +00:00
James Turner
29ef561ed9
Fix some inverted logic
...
- spotted by Thomas Geymayer!
2015-11-20 21:28:19 +00:00
James Turner
ca1f8cddc9
Fix a package crash on startup.
2015-11-13 22:13:44 +00:00
James Turner
18a898f5f9
Lots of work on aircraft package support
2015-09-20 19:46:35 -05: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
Rebecca N. Palmer
16784d590a
Document that property write-protection is not a security measure
...
(Nasal can remove it)
2015-03-13 18:11:29 +00:00
James Turner
11c2623dec
Start wiring package manager into the launcher.
2015-03-11 17:09:59 +00:00
James Turner
c3543f8fdd
GUI ‘restore defaults’ support.
...
- Hold ‘alt’ on launch to restore defaults, including launcher prefs.
2015-03-08 00:42:39 +00: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
James Turner
ee61a07636
Restore aircraft-manager location back to FG_HOME
2015-01-10 14:18:32 +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
729392b1f3
Remove obsolete #define
2014-11-11 22:25:55 +00:00
Thomas Geymayer
0b9e72eb87
Nasal: move IOrules check to better place and exit on failure.
2014-09-19 18:22:47 +02:00
Thomas Geymayer
0f14a2d73b
subsystemFactor: name fixing (use same as in fg_init.cxx) and cleanup.
2014-07-12 01:17:35 +02:00
James Turner
7e8d713b28
Pkg: initial support for Variants
...
- aircraft init code can deal with a variant ID
- Nasal API can return a hash with variant IDs and names
2014-06-15 20:10:24 +02:00
Thomas Geymayer
9604142d09
Fix crash (use iterator of same container for loop)
2014-06-12 16:38:21 +02:00
James Turner
63427fc589
Pkg: Fix loading of non-installed aircraft.
...
Fallback to the normal code path when a packaged aircraft is
found, but not installed.
2014-06-12 13:06:01 +01:00
James Turner
32f57d0dc1
Aircraft switching command and formal support.
...
- /sim/aircraft can be set to package ID, including qualified
package ID. If not matching package is found, falls back to
traditional search of fg-aircraft for -set.xml files
2014-06-12 08:17:05 +01:00
James Turner
d1fd5756f6
Initial package-system integration.
...
- disabled by default
- incomplete, adding so Thomas can see the API
2014-05-31 18:04:56 +01:00
Torsten Dreyer
a5c39e3009
Final log-class cleanup (httpd comes in another commit)
...
yes, I will use grep next time :-/
2014-05-20 23:12:34 +02:00
James Turner
19528fab8c
Fix duplicated FGIO channels on reset.
...
Thanks to Nicholas Scheel for spotting this.
2014-03-26 19:24:00 +00:00
James Turner
487546c848
Fix some leaks on reset
...
- tilecache 'clear_cache' is poorly named, ensure the destructor
really deletes all outstanding entries.
2014-03-13 18:19:13 +00:00
James Turner
afe02b9b36
Reset: tweak property PRESERVE
...
- ensure options are re-processed before restoring PRESERVEd
properties, so that sessions changes survive a reset.
2014-03-11 22:43:25 +00:00
James Turner
1edffd1d10
Reset: fix OSG stats handling
2014-03-11 16:45:47 +00:00
James Turner
f04d5f8758
Reset: work with threaded OSG modes
2014-03-11 16:45:31 +00:00
James Turner
cc607ae7e4
Save/restore initial state removed.
2014-03-10 17:29:28 +00:00
James Turner
9489009570
Fix fg-aircraft, fg-scenery props after reset.
...
- restore fg-aircraft properties, and PRESERVE fg-scenery ones,
across reset.
2014-03-10 17:24:42 +00:00
James Turner
03aa642155
Old reset code-path is removed.
2014-03-10 17:24:37 +00:00
James Turner
5e6c2b8e82
Reset the Autopilot on reposition.
...
- previously we restored AP state to initial; let's
actually re-init it after re-position.
2014-03-10 12:02:10 +00:00
James Turner
a8fe586e48
Revert wiping of /fdm on reposition.
...
This is too destructive for many established things, so revert it.
Instead, make the FDM shell save /fdm state on postinit(), and
restore it on re-init (which reposition invokes).
2014-03-10 12:00:51 +00:00