| 239 | } |
| 240 | |
| 241 | Dictionary ProjectConfigLoader::get_section(const String &p_var) const { |
| 242 | Dictionary section; |
| 243 | String section_name = p_var; |
| 244 | if (!section_name.ends_with("/")) { |
| 245 | section_name += "/"; |
| 246 | } |
| 247 | for (const auto &E : props) { |
| 248 | String key = E.key; |
| 249 | if (key.begins_with(section_name)) { |
| 250 | section[key.trim_prefix(section_name)] = E.value.variant; |
| 251 | } |
| 252 | } |
| 253 | return section; |
| 254 | } |
| 255 | |
| 256 | Error ProjectConfigLoader::remove_setting(String p_var) { |
| 257 | if (props.has(p_var)) { |
no outgoing calls
no test coverage detected