mirror of
https://github.com/holub/mame
synced 2025-04-22 16:31:49 +03:00
[APPLE2GS] Fixing regression
This commit is contained in:
parent
614fa9b9f4
commit
9df72a7b5b
@ -164,10 +164,10 @@ static void apple525_disk_set_lines(device_t *device,device_t *image, UINT8 new_
|
||||
int apple525_get_count(device_t *device)
|
||||
{
|
||||
int cnt = 0;
|
||||
if (device->subdevice("^"FLOPPY_0)!=NULL && get_device(device->subdevice(PARENT_FLOPPY_0))!=NULL) cnt++;
|
||||
if (device->subdevice("^"FLOPPY_1)!=NULL && get_device(device->subdevice(PARENT_FLOPPY_1))!=NULL) cnt++;
|
||||
if (device->subdevice("^"FLOPPY_2)!=NULL && get_device(device->subdevice(PARENT_FLOPPY_2))!=NULL) cnt++;
|
||||
if (device->subdevice("^"FLOPPY_3)!=NULL && get_device(device->subdevice(PARENT_FLOPPY_3))!=NULL) cnt++;
|
||||
if (device->subdevice("^"FLOPPY_0)!=NULL && device->type() == FLOPPY_APPLE && get_device(device->subdevice(PARENT_FLOPPY_0))!=NULL) cnt++;
|
||||
if (device->subdevice("^"FLOPPY_1)!=NULL && device->type() == FLOPPY_APPLE && get_device(device->subdevice(PARENT_FLOPPY_1))!=NULL) cnt++;
|
||||
if (device->subdevice("^"FLOPPY_2)!=NULL && device->type() == FLOPPY_APPLE && get_device(device->subdevice(PARENT_FLOPPY_2))!=NULL) cnt++;
|
||||
if (device->subdevice("^"FLOPPY_3)!=NULL && device->type() == FLOPPY_APPLE && get_device(device->subdevice(PARENT_FLOPPY_3))!=NULL) cnt++;
|
||||
|
||||
// printf("%d apple525 drives\n", cnt);
|
||||
return cnt;
|
||||
|
Loading…
Reference in New Issue
Block a user