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

Method get_section

utility/pcfg_loader.cpp:241–254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

239}
240
241Dictionary 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
256Error ProjectConfigLoader::remove_setting(String p_var) {
257 if (props.has(p_var)) {

Callers 2

_set_shader_globalsMethod · 0.80
_clear_shader_globalsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected