From: James Turner Date: Sat, 6 Apr 2013 16:40:28 +0000 (+0100) Subject: Disable POI data on Windows for the moment. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a0cf59d8af41472fb1330948b9b81a21ab92cf61;p=flightgear.git Disable POI data on Windows for the moment. Avoid horrible startup times for Windows users. It would be good if someone with a Windows box, debug environment and some time could investigate further. --- diff --git a/src/Navaids/NavDataCache.cxx b/src/Navaids/NavDataCache.cxx index 5928ddaa6..dc8cae0cb 100644 --- a/src/Navaids/NavDataCache.cxx +++ b/src/Navaids/NavDataCache.cxx @@ -40,6 +40,7 @@ #include "sqlite3.h" // SimGear +#include #include #include #include @@ -1254,11 +1255,15 @@ void NavDataCache::doRebuild() stampCacheFile(d->navDatPath); SG_LOG(SG_NAVCACHE, SG_INFO, "nav.dat load took:" << st.elapsedMSec()); +#ifdef SG_WINDOWS + SG_LOG(SG_NAVCACHE, SG_ALERT, "SKIPPING POI load on Windows"); +#else st.stamp(); poiDBInit(d->poiDatPath); stampCacheFile(d->poiDatPath); SG_LOG(SG_NAVCACHE, SG_INFO, "poi.dat load took:" << st.elapsedMSec()); - +#endif + loadCarrierNav(d->carrierDatPath); stampCacheFile(d->carrierDatPath);