1
0
Fork 0
mirror of https://github.com/notwa/mm synced 2024-11-05 00:39:02 -08:00

fix extraction of Doubutsu no Mori files

This commit is contained in:
Connor Olding 2018-06-16 11:47:36 +02:00
parent ed63ff4654
commit df13f93892

View file

@ -22,6 +22,8 @@ def try_actor(f):
return False
f.seek(-section_size, 2)
section_start = f.tell()
if section_start + 12 >= file_size:
return False
data_offset = R4(f.read(4))
data_size = R4(f.read(4))
misc_size = R4(f.read(4))