haiku: CD-ROM detection should report any mounted volume on a B_CD device.
authorRyan C. Gordon <icculus@icculus.org>
Thu, 10 Aug 2017 12:31:06 -0400
changeset 1553 55b6495c3f17
parent 1552 cb2f1ea59ee0
child 1554 50a29741914c
haiku: CD-ROM detection should report any mounted volume on a B_CD device. Most discs only use the "raw" device, but it turns out the Haiku installation "anyboot" images don't, and those would fail to detect here. If there's some multi-partition disc thing and the OS mounted each separately, we should report each of them.
src/physfs_platform_haiku.cpp
--- a/src/physfs_platform_haiku.cpp	Tue Aug 08 15:27:32 2017 -0400
+++ b/src/physfs_platform_haiku.cpp	Thu Aug 10 12:31:06 2017 -0400
@@ -105,9 +105,6 @@
             continue;
         } /* if */
 
-        if (strcmp(e.name, "raw") != 0)  /* ignore partitions. */
-            continue;
-
         const int devfd = open(name, O_RDONLY);
         if (devfd < 0)
             continue;