+
+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_t sector, uint8_t * buffer)
+{
+#warning "!!! FIX !!! CDIntfReadBlock not implemented!"
+ // !!! FIX !!!
+ WriteLog("CDINTF: ReadBlock unimplemented!\n");
+ return false;
+}
+
+uint32_t CDIntfGetNumSessions(void)
+{
+#warning "!!! FIX !!! CDIntfGetNumSessions not implemented!"
+ // !!! FIX !!!
+ // Still need relevant code here... !!! FIX !!!
+ return 2;
+}
+
+void CDIntfSelectDrive(uint32_t driveNum)
+{
+#warning "!!! FIX !!! CDIntfSelectDrive not implemented!"
+ // !!! FIX !!!
+ WriteLog("CDINTF: SelectDrive unimplemented!\n");
+}
+
+uint32_t CDIntfGetCurrentDrive(void)
+{
+#warning "!!! FIX !!! CDIntfGetCurrentDrive not implemented!"
+ // !!! FIX !!!
+ WriteLog("CDINTF: GetCurrentDrive unimplemented!\n");
+ return 0;
+}
+
+const uint8_t * CDIntfGetDriveName(uint32_t driveNum)
+{
+#warning "!!! FIX !!! CDIntfGetDriveName driveNum is currently ignored!"
+ // driveNum is currently ignored... !!! FIX !!!
+
+#ifdef HAVE_LIB_CDIO
+ uint8_t * driveName = (uint8_t *)cdio_get_default_device(cdioPtr);
+ WriteLog("CDINTF: The drive name for the current driver is %s.\n", driveName);
+
+ return driveName;
+#else
+ return (uint8_t *)"NONE";
+#endif
+}
+
+uint8_t CDIntfGetSessionInfo(uint32_t session, uint32_t offset)
+{
+#warning "!!! FIX !!! CDIntfGetSessionInfo not implemented!"
+ // !!! FIX !!!
+ WriteLog("CDINTF: GetSessionInfo unimplemented!\n");
+ return 0xFF;
+}
+
+uint8_t CDIntfGetTrackInfo(uint32_t track, uint32_t offset)
+{
+#warning "!!! FIX !!! CDIntfTrackInfo not implemented!"
+ // !!! FIX !!!
+ WriteLog("CDINTF: GetTrackInfo unimplemented!\n");
+ return 0xFF;
+}