Added patch 884060 from Martin Battig
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1607
This commit is contained in:
parent
2b88ae212e
commit
3e170dbdcf
5 changed files with 126 additions and 1 deletions
|
@ -5,9 +5,11 @@
|
|||
#define MAX_ASPI_CDROM 5
|
||||
|
||||
#include <string.h>
|
||||
#include "dosbox.h"
|
||||
#include "mem.h"
|
||||
#include "SDL.h"
|
||||
|
||||
|
||||
#define RAW_SECTOR_SIZE 2352
|
||||
#define COOKED_SECTOR_SIZE 2048
|
||||
|
||||
|
@ -181,4 +183,21 @@ private:
|
|||
|
||||
#endif /* WIN 32 */
|
||||
|
||||
#if defined (LINUX)
|
||||
|
||||
class CDROM_Interface_Ioctl : public CDROM_Interface_SDL
|
||||
{
|
||||
public:
|
||||
CDROM_Interface_Ioctl (void);
|
||||
|
||||
bool SetDevice (char* path, int forceCD);
|
||||
bool GetUPC (unsigned char& attr, char* upc);
|
||||
bool ReadSectors (PhysPt buffer, bool raw, unsigned long sector, unsigned long num);
|
||||
|
||||
private:
|
||||
char device_name[512];
|
||||
};
|
||||
|
||||
#endif /* LINUX */
|
||||
|
||||
#endif /* __CDROM_INTERFACE__ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue