Gracefully handle ProDOS images by saying they aren't supported

This commit is contained in:
Rob McMullen 2017-02-24 22:20:35 -08:00
parent 58932b5bd7
commit 55fd4f00c6

View File

@ -524,8 +524,14 @@ class Dos33DiskImage(DiskImageBase):
class ProdosHeader(Dos33Header):
file_format = "ProDOS"
def __str__(self):
return "%s Disk Image (size=%d) THIS FORMAT IS NOT SUPPORTED YET!" % (self.file_format, self.image_size)
class ProdosDiskImage(DiskImageBase):
def __str__(self):
return str(self.header)
class ProdosDiskImage(Dos33DiskImage):
def read_header(self):
self.header = ProdosHeader()