mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Add sqlite3 backend hack for android
This commit is contained in:
parent
6c5f79fee9
commit
fa427d641b
3 changed files with 45 additions and 9 deletions
|
@ -242,12 +242,7 @@ 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<<
|
||||
#ifdef __ANDROID__
|
||||
"\nbackend = leveldb\n";
|
||||
#else
|
||||
"\nbackend = sqlite3\n";
|
||||
#endif
|
||||
ss<<"gameid = "<<gameid<< "\nbackend = sqlite3\n";
|
||||
fs::safeWriteToFile(worldmt_path, ss.str());
|
||||
}
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue