summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2019-01-21 15:23:08 -0300
committerJuan Linietsky <reduzio@gmail.com>2019-01-21 18:06:14 -0300
commit6fa632b82121aff5537d627364d2f10fdeafc418 (patch)
tree892a2f4028268c3b0918b0b23716a43369725a78 /core
parent100154a1319ef6b6772bb27612f5329204a68798 (diff)
Add function to obtain filesystem type from DirAccess.
Change EditorFileSystem to not use directory modification times on FAT32, fixes #20946
Diffstat (limited to 'core')
-rw-r--r--core/io/file_access_pack.cpp4
-rw-r--r--core/io/file_access_pack.h3
-rw-r--r--core/os/dir_access.h1
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);