Discard unsupported 3.5 and 13 sector woz disks

This commit is contained in:
Ivan Izaguirre 2019-12-21 12:51:13 +01:00 committed by Iván Izaguirre
parent 88ade57b1b
commit bd44cbbd07
1 changed files with 8 additions and 0 deletions

View File

@ -192,6 +192,14 @@ func loadFileWoz(filename string) (*fileWoz, error) {
return nil, errors.New("Woz version not supported")
}
// Discard not supported features
if f.info.DiskType != 1 {
return nil, errors.New("Only 5.25 disks are supported")
}
if f.info.BootSectorFormat == 2 { // Info not available in WOZ 1.0
return nil, errors.New("Woz 13 sector disks are not supported")
}
return &f, nil
}