Просмотр исходного кода

Add some more filesystem types that might be CDs or DVDs.

Ryan C. Gordon 16 лет назад
Родитель
Сommit
e6f331f32d
1 измененных файлов с 8 добавлено и 0 удалено
  1. 8 0
      src/platform_unix.c

+ 8 - 0
src/platform_unix.c

@@ -101,6 +101,14 @@ void __PHYSFS_platformDetectAvailableCDs(PHYSFS_StringCallback cb, void *data)
         int add_it = 0;
         int add_it = 0;
         if (strcmp(ent->mnt_type, "iso9660") == 0)
         if (strcmp(ent->mnt_type, "iso9660") == 0)
             add_it = 1;
             add_it = 1;
+        else if (strcmp(ent->mnt_type, "udf") == 0)
+            add_it = 1;
+
+        /* !!! FIXME: these might pick up floppy drives, right? */
+        else if (strcmp(ent->mnt_type, "auto") == 0)
+            add_it = 1;
+        else if (strcmp(ent->mnt_type, "supermount") == 0)
+            add_it = 1;
 
 
         /* !!! FIXME: udf? automount? */
         /* !!! FIXME: udf? automount? */