mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-02 16:38:41 +00:00
Minor improvements to startup logging and related code
This commit is contained in:
parent
8d648364c0
commit
721e06451e
2 changed files with 65 additions and 48 deletions
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue