Merge pull request #2 from paulhagstrom/master
Added file name and changed format for valid/invalid reporting
This commit is contained in:
commit
c21d640fd7
|
@ -70,9 +70,9 @@ SOSfile = open(disk_img, 'rb')
|
||||||
filetype = readUnpack(8, type = 't')
|
filetype = readUnpack(8, type = 't')
|
||||||
|
|
||||||
if filetype == 'SOS DRVR':
|
if filetype == 'SOS DRVR':
|
||||||
print "This is a proper SOS.DRIVER file."
|
print "Valid SOS.DRIVER file: {}".format(disk_img)
|
||||||
else:
|
else:
|
||||||
print "This is not a proper SOS.DRIVER file"
|
print "INVALID SOS.DRIVER file: {}".format(disk_img)
|
||||||
exit()
|
exit()
|
||||||
|
|
||||||
# read two bytes immediately after "SOS DRVR" to determine jump
|
# read two bytes immediately after "SOS DRVR" to determine jump
|
||||||
|
|
Loading…
Reference in New Issue