From 1efdb62a8fa5dfb8a11329ce1f54cdc983476e5c Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Thu, 10 Aug 2017 12:31:06 -0400 Subject: [PATCH] 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 | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/physfs_platform_haiku.cpp b/src/physfs_platform_haiku.cpp index 4a7f2fc..fcf8ebd 100644 --- a/src/physfs_platform_haiku.cpp +++ b/src/physfs_platform_haiku.cpp @@ -105,9 +105,6 @@ static void tryDir(const char *d, PHYSFS_StringCallback callback, void *data) continue; } /* if */ - if (strcmp(e.name, "raw") != 0) /* ignore partitions. */ - continue; - const int devfd = open(name, O_RDONLY); if (devfd < 0) continue;