summaryrefslogtreecommitdiff
path: root/core/globals.cpp
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2015-06-30 11:28:43 -0300
committerJuan Linietsky <reduzio@gmail.com>2015-06-30 11:28:43 -0300
commit55b34e05b3d735a84e1af9833e19c0b816c18252 (patch)
treea2e5e0020bf68a2b3ea66010dfe5f54b83403d7b /core/globals.cpp
parent95047562d743b1c1fdc007432c8a0c145a455c5d (diff)
-some changes by okam
Diffstat (limited to 'core/globals.cpp')
-rw-r--r--core/globals.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/core/globals.cpp b/core/globals.cpp
index 062adc21f9..731c5b7dff 100644
--- a/core/globals.cpp
+++ b/core/globals.cpp
@@ -1149,6 +1149,12 @@ Error Globals::_save_settings_text(const String& p_file,const Map<String,List<St
return OK;
}
+
+Error Globals::_save_custom_bnd(const String &p_file) { // add other params as dictionary and array?
+
+ return save_custom(p_file);
+};
+
Error Globals::save_custom(const String& p_path,const CustomMap& p_custom,const Set<String>& p_ignore_masks) {
ERR_FAIL_COND_V(p_path=="",ERR_INVALID_PARAMETER);
@@ -1361,6 +1367,9 @@ void Globals::_bind_methods() {
ObjectTypeDB::bind_method(_MD("has_singleton"),&Globals::has_singleton);
ObjectTypeDB::bind_method(_MD("get_singleton"),&Globals::get_singleton_object);
ObjectTypeDB::bind_method(_MD("load_resource_pack"),&Globals::_load_resource_pack);
+
+ ObjectTypeDB::bind_method(_MD("save_custom"),&Globals::_save_custom_bnd);
+
}
Globals::Globals() {