summaryrefslogtreecommitdiff
path: root/core/bind/core_bind.cpp
diff options
context:
space:
mode:
authorAndreas Haas <liu.gam3@gmail.com>2017-01-23 22:33:02 +0100
committerAndreas Haas <liu.gam3@gmail.com>2017-01-23 22:33:58 +0100
commit5ec0610c606f529b21ffc13596ae5a57ead368cb (patch)
tree8e1e05d33208e150330036a25dd7c681603ab5e4 /core/bind/core_bind.cpp
parent16eee2f59b6d2567d7d15d9a2ff66c52e9705137 (diff)
Add ClassDB binding for File.get_modified_time
Closes #7613
Diffstat (limited to 'core/bind/core_bind.cpp')
-rw-r--r--core/bind/core_bind.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/bind/core_bind.cpp b/core/bind/core_bind.cpp
index d4f61b7ffc..954ebbc30c 100644
--- a/core/bind/core_bind.cpp
+++ b/core/bind/core_bind.cpp
@@ -1732,6 +1732,11 @@ Variant _File::get_var() const {
return v;
}
+uint64_t _File::get_modified_time(const String &p_file) const {
+
+ return FileAccess::get_modified_time(p_file);
+}
+
void _File::_bind_methods() {
@@ -1780,6 +1785,7 @@ void _File::_bind_methods() {
ClassDB::bind_method(_MD("get_pascal_string"),&_File::get_pascal_string);
ClassDB::bind_method(_MD("file_exists","path"),&_File::file_exists);
+ ClassDB::bind_method(_MD("get_modified_time", "file"),&_File::get_modified_time);
BIND_CONSTANT( READ );
BIND_CONSTANT( WRITE );