use the default cache location on ios to avoid writing to unwritable file system locations

This commit is contained in:
Konstantin Käfer
2014-09-24 17:08:44 +02:00
parent 992d9ff051
commit 1209744b38
6 changed files with 27 additions and 5 deletions

View File

@@ -8,9 +8,9 @@
namespace mbgl {
FileSource::FileSource(uv_loop_t *loop_)
FileSource::FileSource(uv_loop_t *loop_, const std::string &path)
: thread_id(uv_thread_self()),
store(util::ptr<SQLiteStore>(new SQLiteStore(loop_, "cache.db"))),
store(util::ptr<SQLiteStore>(new SQLiteStore(loop_, path))),
loop(loop_),
queue(new uv_messenger_t) {