mirror of
https://github.com/robmcmullen/atrcopy.git
synced 2024-12-02 00:51:41 +00:00
Fixed MAME rom check to allow 16 byte ROM images instead of minimum 256 byte
This commit is contained in:
parent
dc3d4c1899
commit
df38db492a
@ -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 = []
|
||||||
|
Loading…
Reference in New Issue
Block a user