MCPcopy Create free account
hub / github.com/GDRETools/gdsdecomp / get_setting

Method get_setting

utility/gdre_config.cpp:475–482  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

473}
474
475Variant GDREConfig::get_setting(const String &p_setting, const Variant &p_default_value) const {
476 Variant ret = p_default_value;
477 if (ephemeral_settings.if_contains(get_full_name(p_setting), [&](const auto &v) { ret = v.second; })) {
478 return ret;
479 }
480 settings.if_contains(get_full_name(p_setting), [&](const auto &v) { ret = v.second; });
481 return ret;
482}
483
484String GDREConfig::get_section_from_key(const String &p_setting) {
485 auto parts = p_setting.split("/", true, 1);

Callers 1

get_valueMethod · 0.45

Calls 2

get_full_nameFunction · 0.85
if_containsMethod · 0.80

Tested by

no test coverage detected