src/mess/tools/floptool/main.c
| r13754 | r13755 | |
| 76 | 76 | |
| 77 | 77 | for(int i = 0; i != FORMAT_COUNT; i++) { |
| 78 | 78 | floppy_image_format_t *fif = formats[i]; |
| 79 | | int score = fif->identify(image); |
| 79 | int score = fif->identify(image, floppy_image::FF_UNKNOWN); |
| 80 | 80 | if(score > best) { |
| 81 | 81 | best = score; |
| 82 | 82 | best_fif = fif; |
| r13754 | r13755 | |
| 203 | 203 | dest_io.procs = &stdio_ioprocs_noclose; |
| 204 | 204 | dest_io.filler = 0xff; |
| 205 | 205 | |
| 206 | | floppy_image image(84, 2); |
| 207 | | if(!source_format->load(&source_io, &image)) { |
| 206 | floppy_image image(84, 2, floppy_image::FF_UNKNOWN); |
| 207 | if(!source_format->load(&source_io, floppy_image::FF_UNKNOWN, &image)) { |
| 208 | 208 | fprintf(stderr, "Error: parsing input file as '%s' failed\n", source_format->name()); |
| 209 | 209 | return 1; |
| 210 | 210 | } |