+
+bool CDIntfInit(void)
+{
+#ifdef HAVE_LIB_CDIO
+ cdioPtr = cdio_open(NULL, DRIVER_DEVICE);
+
+ if (cdioPtr == NULL)
+ {
+#endif
+ WriteLog("CDINTF: No suitable CD-ROM driver found.\n");
+ return false;
+#ifdef HAVE_LIB_CDIO
+ }
+
+ WriteLog("CDINTF: Successfully opened CD-ROM interface.\n");
+
+ return true;
+#endif
+}
+
+void CDIntfDone(void)
+{
+ WriteLog("CDINTF: Shutting down CD-ROM subsystem.\n");
+
+#ifdef HAVE_LIB_CDIO
+ if (cdioPtr)
+ cdio_destroy(cdioPtr);
+#endif
+}
+
+bool CDIntfReadBlock(uint32 sector, uint8 * buffer)
+{
+#warning "!!! FIX !!! CDIntfReadBlock not implemented!"
+ // !!! FIX !!!
+ WriteLog("CDINTF: ReadBlock unimplemented!\n");
+ return false;
+}
+
+uint32 CDIntfGetNumSessions(void)
+{
+#warning "!!! FIX !!! CDIntfGetNumSessions not implemented!"
+ // !!! FIX !!!
+ // Still need relevant code here... !!! FIX !!!
+ return 2;
+}
+
+void CDIntfSelectDrive(uint32 driveNum)
+{
+#warning "!!! FIX !!! CDIntfSelectDrive not implemented!"
+ // !!! FIX !!!
+ WriteLog("CDINTF: SelectDrive unimplemented!\n");
+}
+
+uint32 CDIntfGetCurrentDrive(void)
+{
+#warning "!!! FIX !!! CDIntfGetCurrentDrive not implemented!"
+ // !!! FIX !!!
+ WriteLog("CDINTF: GetCurrentDrive unimplemented!\n");
+ return 0;
+}
+
+const uint8 * CDIntfGetDriveName(uint32 driveNum)
+{
+#warning "!!! FIX !!! CDIntfGetDriveName driveNum is currently ignored!"
+ // driveNum is currently ignored... !!! FIX !!!
+
+#ifdef HAVE_LIB_CDIO
+ uint8 * driveName = (uint8 *)cdio_get_default_device(cdioPtr);
+ WriteLog("CDINTF: The drive name for the current driver is %s.\n", driveName);
+
+ return driveName;
+#else
+ return (uint8 *)"NONE";
+#endif
+}
+
+uint8 CDIntfGetSessionInfo(uint32 session, uint32 offset)
+{
+#warning "!!! FIX !!! CDIntfGetSessionInfo not implemented!"
+ // !!! FIX !!!
+ WriteLog("CDINTF: GetSessionInfo unimplemented!\n");
+ return 0xFF;
+}
+
+uint8 CDIntfGetTrackInfo(uint32 track, uint32 offset)
+{
+#warning "!!! FIX !!! CDIntfTrackInfo not implemented!"
+ // !!! FIX !!!
+ WriteLog("CDINTF: GetTrackInfo unimplemented!\n");
+ return 0xFF;
+}