diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-07-07 01:28:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-07 01:28:11 +0200 |
commit | 141ce4d1f9e195ec3235d0fcbd164414e50370ee (patch) | |
tree | 7edb6d2f8e04f1d0a7e144e61e8fc4ebdf2d59fc /core/bind/core_bind.h | |
parent | b96b0d90d7f433c576067305c889ebb2f1dc11be (diff) | |
parent | 09aeb7706b80e72f44fa3397507ff5322b34c7da (diff) |
Merge pull request #40151 from nathanfranke/fix-directory-open-check
Fix Directory Open Check
Diffstat (limited to 'core/bind/core_bind.h')
-rw-r--r-- | core/bind/core_bind.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/bind/core_bind.h b/core/bind/core_bind.h index f9f5a4e7d7..a1fedf1bb8 100644 --- a/core/bind/core_bind.h +++ b/core/bind/core_bind.h @@ -457,6 +457,7 @@ VARIANT_ENUM_CAST(_File::CompressionMode); class _Directory : public Reference { GDCLASS(_Directory, Reference); DirAccess *d; + bool dir_open = false; protected: static void _bind_methods(); @@ -464,6 +465,8 @@ protected: public: Error open(const String &p_path); + bool is_open() const; + Error list_dir_begin(bool p_skip_navigational = false, bool p_skip_hidden = false); // This starts dir listing. String get_next(); bool current_is_dir() const; |