mirror of
https://github.com/minetest/minetestmapper.git
synced 2024-11-21 23:13:53 +01:00
parent
2ae790c0b7
commit
92f6b051a5
@ -330,11 +330,11 @@ std::set<std::string> TileGenerator::getSupportedBackends()
|
|||||||
void TileGenerator::openDb(const std::string &input)
|
void TileGenerator::openDb(const std::string &input)
|
||||||
{
|
{
|
||||||
std::string backend = m_backend;
|
std::string backend = m_backend;
|
||||||
if(backend == "") {
|
if (backend == "") {
|
||||||
std::ifstream ifs((input + "/world.mt").c_str());
|
std::ifstream ifs(input + "/world.mt");
|
||||||
if(!ifs.good())
|
if(!ifs.good())
|
||||||
throw std::runtime_error("Failed to read world.mt");
|
throw std::runtime_error("Failed to open world.mt");
|
||||||
backend = read_setting("backend", ifs);
|
backend = read_setting_default("backend", ifs, "sqlite3");
|
||||||
ifs.close();
|
ifs.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user