mirror of
https://github.com/paleotronic/diskm8.git
synced 2025-01-17 15:30:29 +00:00
fix(disk/diskimageappledos.go): fix for badly behaved sector size spec
This commit is contained in:
parent
f46d7ff6ee
commit
a00aeed763
@ -257,7 +257,11 @@ func (fd *VTOC) GetTrackOrder() int {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (fd *VTOC) BytesPerSector() 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 {
|
func (fd *VTOC) IsTSFree(t, s int) bool {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user