mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Rework Settings to support arbitrary hierarchies (#11352)
This commit is contained in:
parent
cec0dfcbbd
commit
c60a146e22
7 changed files with 164 additions and 71 deletions
|
@ -148,6 +148,11 @@ void TestMapSettingsManager::testMapSettingsManager()
|
|||
check_noise_params(&dummy, &script_np_factor);
|
||||
}
|
||||
|
||||
// The settings manager MUST leave user settings alone
|
||||
mgr.setMapSetting("testname", "1");
|
||||
mgr.setMapSetting("testname", "1", true);
|
||||
UASSERT(!Settings::getLayer(SL_GLOBAL)->exists("testname"));
|
||||
|
||||
// Now make our Params and see if the values are correctly sourced
|
||||
MapgenParams *params = mgr.makeMapgenParams();
|
||||
UASSERT(params->mgtype == MAPGEN_V5);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue