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

remove actor heuristics for now

This commit is contained in:
Connor Olding 2015-03-13 12:16:26 -07:00
parent f1111b025f
commit 9dd16c892d

View file

@ -11,27 +11,11 @@ def try_dmadata(f):
return False
def try_actor(f):
if True:
# this is dumb.
# actors are just object files really,
# so anything we can detect with would just detect code
# or inconsistent data.
# maybe there's some common-looking function between them.
return False
f.seek(-4*4, 2)
end = f.tell()
for i in range(end, end - 0x200, -4):
if i <= 0:
return False
f.seek(i)
#row = f.read(0x10)
row = f.read(0xC)
if len(row) == 0:
return False
#if row == b'\x82\x00\x00\x10\x82\x00\x00\x14\x82\x00\x00\x18\x82\x00\x00\x1c':
# return True
if row == b'\x82\x00\x00\x10\x82\x00\x00\x14\x82\x00\x00\x18':
return True
# actors are just object files really,
# so anything we can detect with
# would just detect code or inconsistent data.
# maybe there's some common-looking function between them.
return False
def try_scene_or_room(f, bank=2):
# note: doesn't detect syotes_room_0 because it's missing a header