Cleaned up the MO struct and some fixed to the new image dialpg.

This commit is contained in:
OBattler
2020-07-19 17:49:58 +02:00
parent 07eded0225
commit d1fca11137
3 changed files with 15 additions and 17 deletions

View File

@@ -373,7 +373,7 @@ mo_load(mo_t *dev, wchar_t *fn)
}
for (i = 0; i < KNOWN_MO_TYPES; i++) {
if (size == mo_types[i].disk_size) {
if (size == (mo_types[i].sectors * mo_types[i].bytes_per_sector)) {
found = 1;
dev->drv->medium_size = mo_types[i].sectors;
dev->drv->sector_size = mo_types[i].bytes_per_sector;