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

Method has_project_setting

utility/gdre_settings.cpp:1781–1788  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1779}
1780
1781bool GDRESettings::has_project_setting(const String &p_setting) {
1782 ERR_FAIL_COND_V_MSG(!is_pack_loaded(), false, "Pack not loaded!");
1783 if (!is_project_config_loaded()) {
1784 WARN_PRINT("Attempted to check project setting " + p_setting + ", but no project config loaded");
1785 return false;
1786 }
1787 return current_project->pcfg->has_setting(p_setting);
1788}
1789
1790Variant GDRESettings::get_project_setting(const String &p_setting, const Variant &default_value) const {
1791 ERR_FAIL_COND_V_MSG(!is_pack_loaded(), default_value, "Pack not loaded!");

Callers 2

export_importsMethod · 0.80
get_translationsMethod · 0.80

Calls 1

has_settingMethod · 0.45

Tested by

no test coverage detected