diff options
author | Nathan Franke <natfra@pm.me> | 2020-07-06 01:17:16 -0500 |
---|---|---|
committer | Nathan Franke <natfra@pm.me> | 2020-07-06 11:32:05 -0500 |
commit | 09aeb7706b80e72f44fa3397507ff5322b34c7da (patch) | |
tree | e8c525038cc8cb04a3309bc26dcd215a1840d664 /core/bind/core_bind.h | |
parent | a8e330ea1974f0bc692f7efac0165142d4b01de8 (diff) | |
download | redot-engine-09aeb7706b80e72f44fa3397507ff5322b34c7da.tar.gz |
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; |