From: James Turner Date: Thu, 18 Aug 2016 15:23:39 +0000 (+0100) Subject: Pass the install dir to Terrasync. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8cbc4df71293509edd4a08deabb94d73ee7ac87e;p=flightgear.git 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. --- 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);