src/mess/formats/d88_dsk.c
| r11219 | r11220 | |
| 277 | 277 | |
| 278 | 278 | floppy_image_read(floppy,header,0,D88_HEADER_LEN); |
| 279 | 279 | |
| 280 | | if (0) |
| 281 | | { |
| 280 | #ifdef SPOT_DUPLICATES |
| 282 | 281 | // there exist many .d88 files with same data and different headers and |
| 283 | 282 | // this allows to spot duplicates, making easier to debug softlists. |
| 284 | 283 | UINT32 temp_size = floppy_image_size(floppy); |
| 285 | 284 | UINT8 tmp_copy[temp_size - D88_HEADER_LEN]; |
| 286 | 285 | floppy_image_read(floppy,tmp_copy,D88_HEADER_LEN,temp_size - D88_HEADER_LEN); |
| 287 | 286 | printf("CRC16: %d\n", ccitt_crc16(0xffff, tmp_copy, temp_size - D88_HEADER_LEN)); |
| 288 | | } |
| 289 | | |
| 287 | #endif |
| 288 | |
| 290 | 289 | if(prot) |
| 291 | 290 | *prot = header[0x1a]; |
| 292 | 291 | if(type) |