Split off the Network configuration from Other peripherals in the Settings dialog and made PCap device configurable;

Overhauled the configuration files so that the global variables are now subdivided into sections;
Fixed CD-ROM MODE SENSE page 0x2A which was being incorrectly reported as not implemented, fixes among other things Rayman 1 and Spellcross: The Last Battle (both now see the CD-ROM and play CD Audio fine).
This commit is contained in:
OBattler
2017-05-17 21:56:31 +02:00
parent 34c08faf46
commit 1a9a55c35e
25 changed files with 1523 additions and 899 deletions

View File

@@ -59,7 +59,7 @@ typedef struct __attribute__((__packed__))
int requested_blocks; /* This will be set to something other than 1 when block reads are implemented. */
int current_page_code;
uint64_t current_page_code;
int current_page_len;
int current_page_pos;
@@ -132,8 +132,6 @@ typedef struct
typedef struct __attribute__((__packed__))
#endif
{
int enabled;
int max_blocks_at_once;
CDROM *handler;
@@ -141,17 +139,17 @@ typedef struct __attribute__((__packed__))
int host_drive;
int prev_host_drive;
uint8_t bus_type; /* 0 = ATAPI, 1 = SCSI */
unsigned int bus_type; /* 0 = ATAPI, 1 = SCSI */
uint8_t bus_mode; /* Bit 0 = PIO suported;
Bit 1 = DMA supportd. */
uint8_t ide_channel;
uint8_t scsi_device_id;
uint8_t scsi_device_lun;
unsigned int scsi_device_id;
unsigned int scsi_device_lun;
uint8_t sound_on;
uint8_t atapi_dma;
unsigned int sound_on;
unsigned int atapi_dma;
} cdrom_drive_t;
#ifdef __MSC__
# pragma pack(pop)