Make image recognition more relaxing (no whatsnew)

This commit is contained in:
Miodrag Milanovic 2011-07-29 17:35:10 +00:00
parent 69be631d8e
commit 4c196a9538
2 changed files with 5 additions and 2 deletions

View File

@ -346,7 +346,7 @@ FLOPPY_IDENTIFY(basicdsk_identify_default)
expected_size *= geometry.heads;
expected_size *= geometry.tracks;
expected_size *= geometry.sectors;
*vote = (floppy_image_size(floppy) == expected_size) ? 100 : 0;
*vote = (floppy_image_size(floppy) == expected_size) ? 100 : 50;
return FLOPPY_ERROR_SUCCESS;
}

View File

@ -154,7 +154,10 @@ static floperr_t floppy_open_internal(void *fp, const struct io_procs *procs, co
floppy->floppy_option = &floppy_options[best_option];
}
if (best_vote != 100)
{
printf("Loading image that is not 100%% recognized\n");
}
err = FLOPPY_ERROR_SUCCESS;
done: