diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/io/file_access_pack.cpp | 4 | ||||
-rw-r--r-- | core/io/file_access_pack.h | 3 | ||||
-rw-r--r-- | core/os/dir_access.h | 1 |
3 files changed, 8 insertions, 0 deletions
diff --git a/core/io/file_access_pack.cpp b/core/io/file_access_pack.cpp index 43fedc5238..c97b8cafac 100644 --- a/core/io/file_access_pack.cpp +++ b/core/io/file_access_pack.cpp @@ -490,6 +490,10 @@ size_t DirAccessPack::get_space_left() { return 0; } +String DirAccessPack::get_filesystem_type() const { + return "PCK"; +} + DirAccessPack::DirAccessPack() { current = PackedData::get_singleton()->root; diff --git a/core/io/file_access_pack.h b/core/io/file_access_pack.h index 04610bed57..ae5e83d405 100644 --- a/core/io/file_access_pack.h +++ b/core/io/file_access_pack.h @@ -221,6 +221,9 @@ public: size_t get_space_left(); + virtual String get_filesystem_type() const; + + DirAccessPack(); ~DirAccessPack(); }; diff --git a/core/os/dir_access.h b/core/os/dir_access.h index 16358fbc57..36ccbc9b4d 100644 --- a/core/os/dir_access.h +++ b/core/os/dir_access.h @@ -98,6 +98,7 @@ public: virtual Error rename(String p_from, String p_to) = 0; virtual Error remove(String p_name) = 0; + virtual String get_filesystem_type() const=0 ; static String get_full_path(const String &p_path, AccessType p_access); static DirAccess *create_for_path(const String &p_path); |