X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fcdintf_linux.cpp;h=9e06f4f97e494fe4316e1ff78f7746d2b8d948b8;hb=ac0d85f284c606a9daa03feac85990b4aa15f707;hp=1d35eea62dd6f740fcf070bbf53f908b51ac414c;hpb=e38df3d3caf3c101357c49715139ceb6e1eac1e2;p=virtualjaguar diff --git a/src/cdintf_linux.cpp b/src/cdintf_linux.cpp index 1d35eea..9e06f4f 100644 --- a/src/cdintf_linux.cpp +++ b/src/cdintf_linux.cpp @@ -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 @@ -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