From 70a1f9f0d1e1f65e3bdc93e51b3733db2e17e5b9 Mon Sep 17 00:00:00 2001 From: Patryk Obara Date: Wed, 18 Dec 2019 18:22:38 +0100 Subject: [PATCH] Remove PHYSICAL_CD from MountType enum --- src/dos/dos_mscdex.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/dos/dos_mscdex.cpp b/src/dos/dos_mscdex.cpp index c51b6dd5..233617d7 100644 --- a/src/dos/dos_mscdex.cpp +++ b/src/dos/dos_mscdex.cpp @@ -51,7 +51,6 @@ #define REQUEST_STATUS_ERROR 0x8000 enum class MountType { - PHYSICAL_CD, ISO_IMAGE, DIRECTORY, }; @@ -263,17 +262,14 @@ int CMscdex::AddDrive(Bit16u _drive, char* physicalPath, Bit8u& subUnit) int result = 0; // Get Mounttype and init needed cdrom interface switch (MSCDEX_GetMountType(physicalPath)) { - case MountType::PHYSICAL_CD: - LOG(LOG_MISC,LOG_NORMAL)("MSCDEX: No physical CD-ROM support: %s", physicalPath); - return 2; case MountType::ISO_IMAGE: LOG(LOG_MISC,LOG_NORMAL)("MSCDEX: Mounting iso file as cdrom: %s", physicalPath); cdrom[numDrives] = new CDROM_Interface_Image((Bit8u)numDrives); break; case MountType::DIRECTORY: + LOG(LOG_MISC,LOG_NORMAL)("MSCDEX: Mounting directory as cdrom: %s", physicalPath); + LOG(LOG_MISC,LOG_NORMAL)("MSCDEX: You wont have full MSCDEX support!"); cdrom[numDrives] = new CDROM_Interface_Fake; - LOG(LOG_MISC,LOG_NORMAL)("MSCDEX: Mounting directory as cdrom: %s",physicalPath); - LOG(LOG_MISC,LOG_NORMAL)("MSCDEX: You wont have full MSCDEX support !"); result = 5; break; };