mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Rename getGameMinetestConfig to getGameConfig
This commit is contained in:
parent
4c4918b154
commit
dfd7628950
1 changed files with 2 additions and 3 deletions
|
@ -22,9 +22,8 @@
|
||||||
namespace
|
namespace
|
||||||
{
|
{
|
||||||
|
|
||||||
bool getGameMinetestConfig(const std::string &game_path, Settings &conf)
|
bool getGameConfig(const std::string &game_path, Settings &conf)
|
||||||
{
|
{
|
||||||
// TODO: rename this
|
|
||||||
std::string conf_path = game_path + DIR_DELIM + "minetest.conf";
|
std::string conf_path = game_path + DIR_DELIM + "minetest.conf";
|
||||||
return conf.readConfigFile(conf_path.c_str());
|
return conf.readConfigFile(conf_path.c_str());
|
||||||
}
|
}
|
||||||
|
@ -355,7 +354,7 @@ void loadGameConfAndInitWorld(const std::string &path, const std::string &name,
|
||||||
game_settings = Settings::createLayer(SL_GAME);
|
game_settings = Settings::createLayer(SL_GAME);
|
||||||
}
|
}
|
||||||
|
|
||||||
getGameMinetestConfig(gamespec.path, *game_settings);
|
getGameConfig(gamespec.path, *game_settings);
|
||||||
game_settings->removeSecureSettings();
|
game_settings->removeSecureSettings();
|
||||||
|
|
||||||
infostream << "Initializing world at " << final_path << std::endl;
|
infostream << "Initializing world at " << final_path << std::endl;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue