projects
/
oweals
/
minetest.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix issue 1527
[oweals/minetest.git]
/
src
/
subgame.cpp
diff --git
a/src/subgame.cpp
b/src/subgame.cpp
index 806d6593451adfd1629fd2602f661ba319d43b1f..1030d535a7b51613c3e1bd2350b4edb939153c92 100644
(file)
--- 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);
infostream<<"Creating world.mt ("<<worldmt_path<<")"<<std::endl;
fs::CreateAllDirs(path);
std::ostringstream ss(std::ios_base::binary);
- ss<<"gameid = "<<gameid<<"\n";
+ ss<<"gameid = "<<gameid<<
+#ifdef __ANDROID__
+ "\nbackend = leveldb\n";
+#else
+ "\nbackend = sqlite3\n";
+#endif
fs::safeWriteToFile(worldmt_path, ss.str());
}
return true;
fs::safeWriteToFile(worldmt_path, ss.str());
}
return true;