diff options
author | Juan Linietsky <reduzio@gmail.com> | 2018-08-10 13:28:47 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-10 13:28:47 -0300 |
commit | 275e0d5ee4e80d9d3cd124ffa29a691b9aed3e70 (patch) | |
tree | 6cb7e7f8bec4a2d599ecd0dbbc17f651c56fc710 /core/os/file_access.h | |
parent | b9730a695643af15bd97f9b87ae656b735281bba (diff) | |
parent | d315b0fb8aa03ee6ecc7d93d884b606dc19c6ad5 (diff) | |
download | redot-engine-275e0d5ee4e80d9d3cd124ffa29a691b9aed3e70.tar.gz |
Merge pull request #18914 from notwarp/master
added get_creation_time function for gdscript
Diffstat (limited to 'core/os/file_access.h')
-rw-r--r-- | core/os/file_access.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/os/file_access.h b/core/os/file_access.h index c4635fdfbb..2b9477a79c 100644 --- a/core/os/file_access.h +++ b/core/os/file_access.h @@ -59,6 +59,7 @@ protected: String fix_path(const String &p_path) const; virtual Error _open(const String &p_path, int p_mode_flags) = 0; ///< open a file virtual uint64_t _get_modified_time(const String &p_file) = 0; + virtual uint64_t _get_creation_time(const String &p_file) = 0; // NEW FUNCTION static FileCloseFailNotify close_fail_notify; @@ -153,6 +154,7 @@ public: static CreateFunc get_create_func(AccessType p_access); static bool exists(const String &p_name); ///< return true if a file exists static uint64_t get_modified_time(const String &p_file); + static uint64_t get_creation_time(const String &p_file); // NEW FUNCTION static void set_backup_save(bool p_enable) { backup_save = p_enable; }; static bool is_backup_save_enabled() { return backup_save; }; |