Fixed MAME rom check to allow 16 byte ROM images instead of minimum 256 byte

This commit is contained in:
Rob McMullen 2016-10-01 18:40:40 -07:00
parent dc3d4c1899
commit df38db492a

View File

@ -37,9 +37,9 @@ class MameZipImage(DiskImageBase):
def check_zip_size(self, zf): def check_zip_size(self, zf):
for item in zf.infolist(): for item in zf.infolist():
_, r = divmod(item.file_size, 256) _, r = divmod(item.file_size, 16)
if r > 0: if r > 0:
raise InvalidDiskImage("zip entry not 256 byte multiple") raise InvalidDiskImage("zip entry not 16 byte multiple")
def create_rawdata(self, zf): def create_rawdata(self, zf):
roms = [] roms = []