Add ClassDB binding for File.get_modified_time

Closes #7613
This commit is contained in:
Andreas Haas 2017-01-23 22:33:02 +01:00
parent 16eee2f59b
commit 5ec0610c60
No known key found for this signature in database
GPG Key ID: B5FFAE1B65FBD2E1
2 changed files with 8 additions and 0 deletions

View File

@ -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 );

View File

@ -440,6 +440,8 @@ public:
bool file_exists(const String& p_name) const; ///< return true if a file exists
uint64_t get_modified_time(const String& p_file) const;
_File();
virtual ~_File();