mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-16 18:05:22 +02:00
Minor improvements to startup logging and related code
This commit is contained in:
@@ -24,6 +24,7 @@ namespace
|
||||
|
||||
bool getGameMinetestConfig(const std::string &game_path, Settings &conf)
|
||||
{
|
||||
// TODO: rename this
|
||||
std::string conf_path = game_path + DIR_DELIM + "minetest.conf";
|
||||
return conf.readConfigFile(conf_path.c_str());
|
||||
}
|
||||
@@ -388,7 +389,7 @@ void loadGameConfAndInitWorld(const std::string &path, const std::string &name,
|
||||
conf.set("blocksize", std::to_string(MAP_BLOCKSIZE));
|
||||
|
||||
if (!conf.updateConfigFile(worldmt_path.c_str())) {
|
||||
throw BaseException("Failed to update the config file");
|
||||
throw BaseException("Failed to update world.mt");
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user