paul1962
Posts: 3
Joined: Mon Jan 17, 2022 12:38 pm

adding cdrom device

HI,
Hope this is the right place to ask this.

I'm trying to add a scsi cd rom device to an existing driver for a new game but can't seem to figure it out.
The current driver uses a hard drive and the setup is as follows:
nscsi_connector &connector0(NSCSI_CONNECTOR(config, "scsibus:0", 0));
connector0.option_add("harddisk", NSCSI_HARDDISK);
with the drive image loaded as follows
DISK_REGION( "scsibus:0:harddisk:image" )
DISK_IMAGE( "XXX", 0, SHA1(XXX ))

The scsi cd rom is scsi device 3 so I have the following...
nscsi_connector &connector3(NSCSI_CONNECTOR(config, "scsibus:3", 0));
connector3.option_add("cdrom", NSCSI_CDROM);
with the image loaded like this...
DISK_REGION( "scsibus:3:cdrom:image" )
DISK_IMAGE_READONLY( "xxxx", 0, SHA1(xxxx) )

The emulation runs up until the point it issues scsi test unit ready command which always reports no media :(

I must be missing something obvious...any help very much appreciated.

Thanks

Paul
paul1962
Posts: 3
Joined: Mon Jan 17, 2022 12:38 pm

Re: adding cdrom device

Solved this...
no need for the ":image" part so
DISK_REGION( "scsibus:3:cdrom:image" )
should be
DISK_REGION( "scsibus:3:cdrom:" )

Return to “MAME Discussion”