summaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
author R. Belmont <rb6502@users.noreply.github.com>2013-01-13 17:43:58 +0000
committer R. Belmont <rb6502@users.noreply.github.com>2013-01-13 17:43:58 +0000
commita95242d9e9362294ff67273ab3ac73e2251428f6 (patch)
treeb7073ef5f3f151457b68f98b891a016cb03c40ed /src
parent015f6484c3ea6dcdfd217be7cf8468121e49ca2e (diff)
(MESS) Fix non-functionality of all Apple floppy drives. [R. Belmont]
Diffstat (limited to 'src')
-rw-r--r--src/mess/devices/appldriv.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/mess/devices/appldriv.c b/src/mess/devices/appldriv.c
index fa949739bec..6c91161d067 100644
--- a/src/mess/devices/appldriv.c
+++ b/src/mess/devices/appldriv.c
@@ -164,12 +164,11 @@ 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 && 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++;
+ if ((device->subdevice("^"FLOPPY_0)!=NULL) && (floppy_get_drive_type(device->subdevice("^"FLOPPY_0)) == FLOPPY_TYPE_APPLE) && (get_device(device->subdevice(PARENT_FLOPPY_0))!=NULL)) cnt++;
+ if ((device->subdevice("^"FLOPPY_1)!=NULL) && (floppy_get_drive_type(device->subdevice("^"FLOPPY_1)) == FLOPPY_TYPE_APPLE) && (get_device(device->subdevice(PARENT_FLOPPY_1))!=NULL)) cnt++;
+ if ((device->subdevice("^"FLOPPY_2)!=NULL) && (floppy_get_drive_type(device->subdevice("^"FLOPPY_2)) == FLOPPY_TYPE_APPLE) && (get_device(device->subdevice(PARENT_FLOPPY_2))!=NULL)) cnt++;
+ if ((device->subdevice("^"FLOPPY_3)!=NULL) && (floppy_get_drive_type(device->subdevice("^"FLOPPY_3)) == FLOPPY_TYPE_APPLE) && (get_device(device->subdevice(PARENT_FLOPPY_3))!=NULL)) cnt++;
-// printf("%d apple525 drives\n", cnt);
return cnt;
}