]> Shamusworld >> Repos - virtualjaguar/blobdiff - src/cdintf_linux.cpp
Added new items because of the v1.0.7 release.
[virtualjaguar] / src / cdintf_linux.cpp
index 1d35eea62dd6f740fcf070bbf53f908b51ac414c..9e06f4f97e494fe4316e1ff78f7746d2b8d948b8 100644 (file)
@@ -13,6 +13,7 @@
 // Big thanks to the DOSBOX team which provided us with great knowlegde about
 // CD-ROM access and Linux/UN*X.
 
+#ifdef LINUX_JAGUAR_CDROM
 
 // *** OS dependent CDROM stuffola ***
 #include <fcntl.h>
@@ -157,3 +158,64 @@ uint8 CDIntfGetTrackInfo(uint32 track, uint32 offset)
        WriteLog("CDINTF: GetTrackInfo unimplemented!\n");
        return 0xFF;
 }
+
+#else
+
+#include "log.h"
+
+//
+// Linux support functions
+// OS specific implementation of OS agnostic functions
+//
+
+bool CDIntfInit(void)
+{
+       WriteLog("CDINTF: Init unimplemented!\n");
+       return false;
+}
+
+void CDIntfDone(void)
+{
+}
+
+bool CDIntfReadBlock(uint32 sector, uint8 * buffer)
+{
+       WriteLog("CDINTF: ReadBlock unimplemented!\n");
+       return false;
+}
+
+uint32 CDIntfGetNumSessions(void)
+{
+       // Still need relevant code here... !!! FIX !!!
+       return 2;
+}
+
+void CDIntfSelectDrive(uint32 driveNum)
+{
+       WriteLog("CDINTF: SelectDrive unimplemented!\n");
+}
+
+uint32 CDIntfGetCurrentDrive(void)
+{
+       WriteLog("CDINTF: GetCurrentDrive unimplemented!\n");
+       return 0;
+}
+
+const uint8 * CDIntfGetDriveName(uint32)
+{
+       WriteLog("CDINTF: GetDriveName unimplemented!\n");
+       return NULL;
+}
+
+uint8 CDIntfGetSessionInfo(uint32 session, uint32 offset)
+{
+       WriteLog("CDINTF: GetSessionInfo unimplemented!\n");
+       return 0xFF;
+}
+
+uint8 CDIntfGetTrackInfo(uint32 track, uint32 offset)
+{
+       WriteLog("CDINTF: GetTrackInfo unimplemented!\n");
+       return 0xFF;
+
+#endif