mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-22 17:18:39 +00:00
Settings: Proper priority hierarchy
Remove old defaults system Introduce priority-based fallback list Use new functions for map_meta special functions Change groups to use end tags Unittest changes: * Adapt unittest to the new code * Compare Settings objects
This commit is contained in:
parent
5e9dd1667b
commit
37a05ec8d6
21 changed files with 358 additions and 298 deletions
|
@ -248,7 +248,7 @@ bool GUIKeyChangeMenu::acceptInput()
|
|||
{
|
||||
for (key_setting *k : key_settings) {
|
||||
std::string default_key;
|
||||
g_settings->getDefaultNoEx(k->setting_name, default_key);
|
||||
Settings::getLayer(SL_DEFAULTS)->getNoEx(k->setting_name, default_key);
|
||||
|
||||
if (k->key.sym() != default_key)
|
||||
g_settings->set(k->setting_name, k->key.sym());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue