1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-09 12:50:35 +00:00

Add function to obtain filesystem type from DirAccess.

Change EditorFileSystem to not use directory modification times on FAT32, fixes #20946
This commit is contained in:
Juan Linietsky
2019-01-21 15:23:08 -03:00
parent 100154a131
commit 6fa632b821
11 changed files with 62 additions and 1 deletions

View File

@@ -797,7 +797,7 @@ void EditorFileSystem::_scan_fs_changes(EditorFileSystemDirectory *p_dir, const
bool updated_dir = false;
String cd = p_dir->get_path();
if (current_mtime != p_dir->modified_time) {
if (current_mtime != p_dir->modified_time || using_fat_32) {
updated_dir = true;
p_dir->modified_time = current_mtime;
@@ -1809,10 +1809,14 @@ EditorFileSystem::EditorFileSystem() {
if (da->change_dir("res://.import") != OK) {
da->make_dir("res://.import");
}
//this should probably also work on Unix and use the string it returns for FAT32
using_fat_32 = da->get_filesystem_type()=="FAT32";
memdelete(da);
scan_total = 0;
update_script_classes_queued = false;
}
EditorFileSystem::~EditorFileSystem() {