1
0
Fork 0

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.
This commit is contained in:
James Turner 2013-04-06 17:40:28 +01:00
parent 85bfd27af2
commit a0cf59d8af

View file

@ -40,6 +40,7 @@
#include "sqlite3.h"
// SimGear
#include <simgear/sg_inlines.h>
#include <simgear/structure/exception.hxx>
#include <simgear/debug/logstream.hxx>
#include <simgear/bucket/newbucket.hxx>
@ -1254,10 +1255,14 @@ 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);