1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Switch android to leveldb as sqlite3 is broken and fails to save any mapblock there

This commit is contained in:
sapier 2014-07-06 21:24:31 +02:00
parent d020e0771d
commit b459f53ac3
4 changed files with 20 additions and 17 deletions

View file

@ -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;