initialize tracks in eddimage

This commit is contained in:
4am 2019-04-25 14:11:39 -04:00
parent 5255a1a990
commit 88c3224f72

View File

@ -8,6 +8,7 @@ class EDDSeekError(EDDError): pass
class EDDReader: class EDDReader:
def __init__(self, iostream): def __init__(self, iostream):
self.tracks = []
for i in range(137): for i in range(137):
raw_bytes = iostream.read(16384) raw_bytes = iostream.read(16384)
raise_if(len(raw_bytes) != 16384, EDDLengthError, "Bad EDD file (did you image by quarter tracks?)") raise_if(len(raw_bytes) != 16384, EDDLengthError, "Bad EDD file (did you image by quarter tracks?)")