Fix 'Unknown map backend' error when using Configure menu right after creating world
parent
f1e4a671dc
commit
d423a8fc20
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue