| 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 |
| r10950 | r10951 | |
|---|---|---|
| 14 | 14 | |
| 15 | 15 | FLOPPY_IDENTIFY(dim_dsk_identify) |
| 16 | 16 | { |
| 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; | |
| 18 | 25 | return FLOPPY_ERROR_SUCCESS; |
| 19 | 26 | } |
| 20 | 27 |
| Previous | 15994 Revisions | Next |