From e361e8539c889d3ca66e77ebb5d0ceb61d17f49d Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Tue, 2 Dec 2014 14:02:41 -0300 Subject: -Ability to ask for documents/pictures/etc system dirs. -Fixes to animationplayer -fixes to collada importer --- core/bind/core_bind.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'core/bind/core_bind.h') diff --git a/core/bind/core_bind.h b/core/bind/core_bind.h index 101dc1ab94..a76b4aa81f 100644 --- a/core/bind/core_bind.h +++ b/core/bind/core_bind.h @@ -201,6 +201,20 @@ public: int get_processor_count() const; + enum SystemDir { + SYSTEM_DIR_DESKTOP, + SYSTEM_DIR_DCIM, + SYSTEM_DIR_DOCUMENTS, + SYSTEM_DIR_DOWNLOADS, + SYSTEM_DIR_MOVIES, + SYSTEM_DIR_MUSIC, + SYSTEM_DIR_PICTURES, + SYSTEM_DIR_RINGTONES, + }; + + String get_system_dir(SystemDir p_dir) const; + + String get_data_dir() const; void set_time_scale(float p_scale); @@ -211,6 +225,9 @@ public: _OS(); }; +VARIANT_ENUM_CAST(_OS::SystemDir); + + class _Geometry : public Object { OBJ_TYPE(_Geometry, Object); -- cgit v1.2.3