Previous 15994 Revisions Next

r9207 Tuesday 21st September, 2010 at 13:14:58 UTC by Roberto Zandonà
AMIGA: removed header's check in floppy emulation; some disk use a non standard header (now we can load Shadow of the Beast)
[src/mess/formats]ami_dsk.c

src/mess/formats/ami_dsk.c
r9206r9207
2222static FLOPPY_IDENTIFY( amiga_dsk_identify )
2323{
2424   UINT64 size;
25   UINT8 header[4];
2625
2726   *vote = 100;
2827
29   /* get first 4 bytes */
30   floppy_image_read(floppy, &header, 0, sizeof(header));
31
3228   /* first check the size of the image */
3329   size = floppy_image_size(floppy);
3430   if ((size != 901120) && (size != 1802240))
3531      *vote = 0;
3632
37   /* then check the first sector for the magic string */
38   if (memcmp(header, "DOS", 3))
39      *vote = 0;
40
41   /* then check the disk type */
42   if (header[3] > 5)
43      *vote = 0;
44
4533   return FLOPPY_ERROR_SUCCESS;
4634}
4735

Previous 15994 Revisions Next


© 1998-2018 The MESS Team