diff options
| author | Juan Linietsky | 2017-02-01 09:45:45 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2017-02-01 09:46:36 -0300 |
| commit | 2cd2ca7bbc892eccc635b1c4aea80c956c9b92dc (patch) | |
| tree | 0a212bf8786c53ec7b054757071dc2430667d3a1 /core/io/config_file.cpp | |
| parent | 36b6ba8e94d9afcb06aa2579bf627651f7ebfea0 (diff) | |
| download | godot-2cd2ca7bbc892eccc635b1c4aea80c956c9b92dc.tar.gz godot-2cd2ca7bbc892eccc635b1c4aea80c956c9b92dc.tar.zst godot-2cd2ca7bbc892eccc635b1c4aea80c956c9b92dc.zip | |
Lot of work in new importer, importing textures now works.
Diffstat (limited to 'core/io/config_file.cpp')
| -rw-r--r-- | core/io/config_file.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/io/config_file.cpp b/core/io/config_file.cpp index a9de74080..b944906e7 100644 --- a/core/io/config_file.cpp +++ b/core/io/config_file.cpp @@ -119,7 +119,10 @@ void ConfigFile::get_section_keys(const String& p_section,List<String> *r_keys) } +void ConfigFile::erase_section(const String& p_section) { + values.erase(p_section); +} Error ConfigFile::save(const String& p_path){ @@ -215,6 +218,8 @@ void ConfigFile::_bind_methods(){ ClassDB::bind_method(_MD("get_sections"),&ConfigFile::_get_sections); ClassDB::bind_method(_MD("get_section_keys","section"),&ConfigFile::_get_section_keys); + ClassDB::bind_method(_MD("erase_section","section"),&ConfigFile::erase_section); + ClassDB::bind_method(_MD("load:Error","path"),&ConfigFile::load); ClassDB::bind_method(_MD("save:Error","path"),&ConfigFile::save); |
