summaryrefslogtreecommitdiff
path: root/src/subgame.cpp
diff options
context:
space:
mode:
authorsapier <Sapier at GMX dot net>2014-07-06 21:24:31 +0200
committersapier <Sapier at GMX dot net>2014-07-06 21:27:54 +0200
commitb459f53ac366930f93928352833ea266fbfcd92e (patch)
tree432c3cf9e039949ef2b162cf65d4e8d3863d806c /src/subgame.cpp
parentd020e0771d938e7ae12e082b5bd4f686e77f0bdb (diff)
downloadminetest-b459f53ac366930f93928352833ea266fbfcd92e.tar.gz
minetest-b459f53ac366930f93928352833ea266fbfcd92e.tar.bz2
minetest-b459f53ac366930f93928352833ea266fbfcd92e.zip
Switch android to leveldb as sqlite3 is broken and fails to save any mapblock there
Diffstat (limited to 'src/subgame.cpp')
-rw-r--r--src/subgame.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/subgame.cpp b/src/subgame.cpp
index 95ae9ef98..1030d535a 100644
--- a/src/subgame.cpp
+++ b/src/subgame.cpp
@@ -242,7 +242,12 @@ bool initializeWorld(const std::string &path, const std::string &gameid)
infostream<<"Creating world.mt ("<<worldmt_path<<")"<<std::endl;
fs::CreateAllDirs(path);
std::ostringstream ss(std::ios_base::binary);
- ss<<"gameid = "<<gameid<<"\nbackend = sqlite3\n";
+ ss<<"gameid = "<<gameid<<
+#ifdef __ANDROID__
+ "\nbackend = leveldb\n";
+#else
+ "\nbackend = sqlite3\n";
+#endif
fs::safeWriteToFile(worldmt_path, ss.str());
}
return true;