Previous 15994 Revisions Next

r10951 Sunday 27th March, 2011 at 22:53:13 UTC by Barry Rodewald
[X680x0] Added a proper header check when loading DIM disk images.
[src/mess/formats]dim_dsk.c

src/mess/formats/dim_dsk.c
r10950r10951
1414
1515FLOPPY_IDENTIFY(dim_dsk_identify)
1616{
17   *vote = 100;
17   UINT8 dim_header[16];
18
19   floppy_image_read(floppy, (UINT8*)dim_header,0xab,16);
20
21   if(strncmp((const char*)dim_header,"DIFC HEADER",11) == 0)
22      *vote = 100;
23   else
24      *vote = 0;
1825   return FLOPPY_ERROR_SUCCESS;
1926}
2027

Previous 15994 Revisions Next


© 1998-2018 The MESS Team