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

Add dummy and LevelDB database backends

This commit is contained in:
Ilya Zhuravlev 2012-10-23 01:18:44 +04:00 committed by Sfan5
parent 71a8769bb5
commit 58841ef12f
148 changed files with 26766 additions and 242 deletions

View file

@ -242,7 +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<<"\n";
ss<<"gameid = "<<gameid<<"\nbackend = sqlite3";
fs::safeWriteToFile(worldmt_path, ss.str());
}
return true;