From 8cbc4df71293509edd4a08deabb94d73ee7ac87e Mon Sep 17 00:00:00 2001 From: James Turner Date: Thu, 18 Aug 2016 16:23:39 +0100 Subject: [PATCH] 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. --- src/Main/main.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Main/main.cxx b/src/Main/main.cxx index b001a2d64..9e658617d 100644 --- a/src/Main/main.cxx +++ b/src/Main/main.cxx @@ -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); -- 2.39.5