mirror of
https://github.com/robmcmullen/atrcopy.git
synced 2025-02-27 03:28:58 +00:00
Corrected segment offset for the data in the segment
This commit is contained in:
parent
4b64010bc7
commit
c4820a26c5
@ -231,9 +231,9 @@ class AtariDosFile(object):
|
|||||||
count = end - start + 1
|
count = end - start + 1
|
||||||
found = len(bytes[pos + 4:pos + 4 + count])
|
found = len(bytes[pos + 4:pos + 4 + count])
|
||||||
if found < count:
|
if found < count:
|
||||||
self.segments.append(ObjSegment(pos, pos + 4, start, end, bytes[pos:pos + count], "Incomplete Data"))
|
self.segments.append(ObjSegment(pos, pos + 4, start, end, bytes[pos + 4:pos + 4 + count], "Incomplete Data"))
|
||||||
break
|
break
|
||||||
self.segments.append(ObjSegment(pos, pos + 4, start, end, bytes[pos:pos + count]))
|
self.segments.append(ObjSegment(pos, pos + 4, start, end, bytes[pos + 4:pos + 4 + count]))
|
||||||
pos += 4 + count
|
pos += 4 + count
|
||||||
|
|
||||||
class AtrDiskImageFromFile(object):
|
class AtrDiskImageFromFile(object):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user