You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-12 13:20:55 +00:00
fix file system not refresh on exFAT
(cherry picked from commit 9d309096c9)
This commit is contained in:
committed by
Rémi Verschelde
parent
41f6a800bd
commit
d585b1a5b1
@@ -837,7 +837,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 || using_fat_32) {
|
||||
if (current_mtime != p_dir->modified_time || using_fat32_or_exfat) {
|
||||
|
||||
updated_dir = true;
|
||||
p_dir->modified_time = current_mtime;
|
||||
@@ -1855,8 +1855,8 @@ 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";
|
||||
// This should probably also work on Unix and use the string it returns for FAT32 or exFAT
|
||||
using_fat32_or_exfat = (da->get_filesystem_type() == "FAT32" || da->get_filesystem_type() == "exFAT");
|
||||
memdelete(da);
|
||||
|
||||
scan_total = 0;
|
||||
|
||||
Reference in New Issue
Block a user