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.
This commit is contained in:
parent
8f3a98d004
commit
324f266283
1 changed files with 5 additions and 1 deletions
|
@ -147,7 +147,11 @@ static void initTerrasync()
|
|||
}
|
||||
|
||||
fgSetString("/sim/terrasync/cache-path", tsyncCache.utf8Str());
|
||||
|
||||
|
||||
// make fg-root dir available so existing Scenery data can be copied, and
|
||||
// hence not downloaded again.
|
||||
fgSetString("/sim/terrasync/installation-dir", (globals->get_fg_root() / "Scenery").utf8Str());
|
||||
|
||||
simgear::SGTerraSync* terra_sync = new simgear::SGTerraSync();
|
||||
terra_sync->setRoot(globals->get_props());
|
||||
globals->add_subsystem("terrasync", terra_sync);
|
||||
|
|
Loading…
Add table
Reference in a new issue