Previous 15994 Revisions Next

r6646 Tuesday 15th December, 2009 at 17:15:43 UTC by Curt Coder
[WD17XX] Nested floppy devices are now supported.
[src/mess/machine]wd17xx.c

src/mess/machine/wd17xx.c
r6645r6646
11671167      logerror("wd17xx_set_drive: $%02x\n", drive);
11681168
11691169   if (w->intf->floppy_drive_tags[drive] != NULL)
1170      w->drive = devtag_get_device(device->machine, w->intf->floppy_drive_tags[drive]);
1170   {
1171      if (device->owner != NULL)
1172         w->drive = device_find_child_by_tag(device->owner, w->intf->floppy_drive_tags[drive]);
1173      else
1174         w->drive = devtag_get_device(device->machine, w->intf->floppy_drive_tags[drive]);
1175   }
11711176}
11721177
11731178void wd17xx_set_side(const device_config *device, UINT8 head)
r6645r6646
19571962   for (i = 0; i < 4; i++)
19581963   {
19591964      if(w->intf->floppy_drive_tags[i]!=NULL) {
1960         const device_config *img = devtag_get_device(device->machine,w->intf->floppy_drive_tags[i]);
1965         const device_config *img;
1966
1967         if (device->owner != NULL)
1968            img = device_find_child_by_tag(device->owner, w->intf->floppy_drive_tags[i]);
1969         else
1970            img = devtag_get_device(device->machine, w->intf->floppy_drive_tags[i]);
1971
19611972         if (img!=NULL) {
19621973            floppy_drive_set_controller(img,device);
19631974            floppy_drive_set_index_pulse_callback(img, wd17xx_index_pulse_callback);

Previous 15994 Revisions Next


© 1998-2018 The MESS Team