mirror of
https://github.com/ivanizag/izapple2.git
synced 2024-11-20 00:32:05 +00:00
Discard unsupported 3.5 and 13 sector woz disks
This commit is contained in:
parent
88ade57b1b
commit
bd44cbbd07
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user