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

Implement get_filesystem_type on macOS and Linux.

This commit is contained in:
Pāvels Nadtočajevs
2025-05-14 11:35:25 +03:00
parent 45fc515ae3
commit d609cf62a0
7 changed files with 184 additions and 2 deletions

View File

@@ -3660,7 +3660,7 @@ EditorFileSystem::EditorFileSystem() {
// This should probably also work on Unix and use the string it returns for FAT32 or exFAT
Ref<DirAccess> da = DirAccess::create(DirAccess::ACCESS_RESOURCES);
using_fat32_or_exfat = (da->get_filesystem_type() == "FAT32" || da->get_filesystem_type() == "exFAT");
using_fat32_or_exfat = (da->get_filesystem_type() == "FAT32" || da->get_filesystem_type() == "EXFAT");
scan_total = 0;
ResourceSaver::set_get_resource_id_for_path(_resource_saver_get_resource_id_for_path);