1
0
mirror of https://github.com/moparisthebest/minetest synced 2024-12-23 08:08:47 -05:00

Fix 'Unknown map backend' error when using Configure menu right after creating world

This commit is contained in:
Sfan5 2013-09-09 19:21:07 +02:00
parent f1e4a671dc
commit d423a8fc20

View File

@ -242,7 +242,7 @@ bool initializeWorld(const std::string &path, const std::string &gameid)
infostream<<"Creating world.mt ("<<worldmt_path<<")"<<std::endl; infostream<<"Creating world.mt ("<<worldmt_path<<")"<<std::endl;
fs::CreateAllDirs(path); fs::CreateAllDirs(path);
std::ostringstream ss(std::ios_base::binary); std::ostringstream ss(std::ios_base::binary);
ss<<"gameid = "<<gameid<<"\nbackend = sqlite3"; ss<<"gameid = "<<gameid<<"\nbackend = sqlite3\n";
fs::safeWriteToFile(worldmt_path, ss.str()); fs::safeWriteToFile(worldmt_path, ss.str());
} }
return true; return true;