mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-11 17:51:04 +00:00
Support game-specific minetest.conf
This commit is contained in:
parent
adc52f3f3c
commit
c2250d95c4
6 changed files with 30 additions and 0 deletions
|
@ -58,6 +58,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
#include "util/mathconstants.h"
|
||||
#include "rollback.h"
|
||||
#include "util/serialize.h"
|
||||
#include "defaultsettings.h"
|
||||
|
||||
void * ServerThread::Thread()
|
||||
{
|
||||
|
@ -687,6 +688,13 @@ Server::Server(
|
|||
infostream<<"- config: "<<m_path_config<<std::endl;
|
||||
infostream<<"- game: "<<m_gamespec.path<<std::endl;
|
||||
|
||||
// Initialize default settings and override defaults with those provided
|
||||
// by the game
|
||||
set_default_settings(g_settings);
|
||||
Settings gamedefaults;
|
||||
getGameMinetestConfig(gamespec.path, gamedefaults);
|
||||
override_default_settings(g_settings, &gamedefaults);
|
||||
|
||||
// Create biome definition manager
|
||||
m_biomedef = new BiomeDefManager(this);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue