]> Shamusworld >> Repos - virtualjaguar/blobdiff - src/cdintf.cpp
Added Memory Track support. One small step towards full CD-ROM support.
[virtualjaguar] / src / cdintf.cpp
index 2f54be5f439d96445843bc374e9873c1fce46ccf..1cf2ee2e2d728d9eadc9a103e999a08f67ab5674 100644 (file)
@@ -1,7 +1,16 @@
 //
 // OS agnostic CDROM interface functions
 //
-// by James L. Hammons
+// by James Hammons
+// (C) 2010 Underground Software
+//
+// JLH = James Hammons <jlhamm@acm.org>
+//
+// Who  When        What
+// ---  ----------  ------------------------------------------------------------
+// JLH  01/16/2010  Created this log ;-)
+//
+
 //
 // This now uses the supposedly cross-platform libcdio to do the necessary
 // low-level CD twiddling we need that libsdl can't do currently. Jury is
@@ -50,6 +59,7 @@ static void TestCDIO(void)
 static CdIo_t * cdioPtr = NULL;
 #endif
 
+
 bool CDIntfInit(void)
 {
 #ifdef HAVE_LIB_CDIO
@@ -69,6 +79,7 @@ bool CDIntfInit(void)
 #endif
 }
 
+
 void CDIntfDone(void)
 {
        WriteLog("CDINTF: Shutting down CD-ROM subsystem.\n");
@@ -79,64 +90,72 @@ void CDIntfDone(void)
 #endif
 }
 
-bool CDIntfReadBlock(uint32 sector, uint8 * buffer)
+
+bool CDIntfReadBlock(uint32_t sector, uint8_t * buffer)
 {
-#warning !!! FIX !!! CDIntfReadBlock not implemented!
+#warning "!!! FIX !!! CDIntfReadBlock not implemented!"
        // !!! FIX !!!
        WriteLog("CDINTF: ReadBlock unimplemented!\n");
        return false;
 }
 
-uint32 CDIntfGetNumSessions(void)
+
+uint32_t CDIntfGetNumSessions(void)
 {
-#warning !!! FIX !!! CDIntfGetNumSessions not implemented!
+#warning "!!! FIX !!! CDIntfGetNumSessions not implemented!"
        // !!! FIX !!!
        // Still need relevant code here... !!! FIX !!!
        return 2;
 }
 
-void CDIntfSelectDrive(uint32 driveNum)
+
+void CDIntfSelectDrive(uint32_t driveNum)
 {
-#warning !!! FIX !!! CDIntfSelectDrive not implemented!
+#warning "!!! FIX !!! CDIntfSelectDrive not implemented!"
        // !!! FIX !!!
        WriteLog("CDINTF: SelectDrive unimplemented!\n");
 }
 
-uint32 CDIntfGetCurrentDrive(void)
+
+uint32_t CDIntfGetCurrentDrive(void)
 {
-#warning !!! FIX !!! CDIntfGetCurrentDrive not implemented!
+#warning "!!! FIX !!! CDIntfGetCurrentDrive not implemented!"
        // !!! FIX !!!
        WriteLog("CDINTF: GetCurrentDrive unimplemented!\n");
        return 0;
 }
 
-const uint8 * CDIntfGetDriveName(uint32 driveNum)
+
+const uint8_t * CDIntfGetDriveName(uint32_t driveNum)
 {
-#warning !!! FIX !!! CDIntfGetDriveName driveNum is currently ignored!
+#warning "!!! FIX !!! CDIntfGetDriveName driveNum is currently ignored!"
        // driveNum is currently ignored... !!! FIX !!!
 
 #ifdef HAVE_LIB_CDIO
-       uint8 * driveName = (uint8 *)cdio_get_default_device(cdioPtr);
+       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 *)"NONE";
+       return (uint8_t *)"NONE";
 #endif
 }
 
-uint8 CDIntfGetSessionInfo(uint32 session, uint32 offset)
+
+uint8_t CDIntfGetSessionInfo(uint32_t session, uint32_t offset)
 {
-#warning !!! FIX !!! CDIntfGetSessionInfo not implemented!
+#warning "!!! FIX !!! CDIntfGetSessionInfo not implemented!"
        // !!! FIX !!!
        WriteLog("CDINTF: GetSessionInfo unimplemented!\n");
        return 0xFF;
 }
 
-uint8 CDIntfGetTrackInfo(uint32 track, uint32 offset)
+
+uint8_t CDIntfGetTrackInfo(uint32_t track, uint32_t offset)
 {
-#warning !!! FIX !!! CDIntfTrackInfo not implemented!
+#warning "!!! FIX !!! CDIntfTrackInfo not implemented!"
        // !!! FIX !!!
        WriteLog("CDINTF: GetTrackInfo unimplemented!\n");
        return 0xFF;
 }
+