| 1779 | } |
| 1780 | |
| 1781 | bool 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 | |
| 1790 | Variant 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!"); |
no test coverage detected