mirror of
https://github.com/paleotronic/diskm8.git
synced 2025-08-05 12:26:28 +00:00
fix(disk/diskimageappledos.go): fix for badly behaved sector size spec
This commit is contained in:
@@ -257,7 +257,11 @@ func (fd *VTOC) GetTrackOrder() int {
|
||||
}
|
||||
|
||||
func (fd *VTOC) BytesPerSector() int {
|
||||
return int(fd.Data[0x36]) + 256*int(fd.Data[0x37])
|
||||
size := int(fd.Data[0x36]) + 256*int(fd.Data[0x37])
|
||||
if size < 256 {
|
||||
size = 256
|
||||
}
|
||||
return size
|
||||
}
|
||||
|
||||
func (fd *VTOC) IsTSFree(t, s int) bool {
|
||||
|
Reference in New Issue
Block a user