Skip to content

Commit

Permalink
Bump tools/unnamed.py to RGBDS object version 13
Browse files Browse the repository at this point in the history
  • Loading branch information
mid-kid committed Apr 6, 2020
1 parent a325db0 commit e225d29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/unnamed.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,14 @@ def read_string(file):
elif magic == b'RGB9':
obj_ver = 10 + unpack_file("<I", f)[0]

if obj_ver not in [6, 10, 11]:
if obj_ver not in [6, 10, 11, 12, 13]:
print("Error: File '%s' is of an unknown format." % objfile, file=stderr)
exit(1)

num_symbols = unpack_file("<II", f)[0]
for x in range(num_symbols):
sym_name = read_string(f)
sym_type = symtype(unpack_file("<B", f)[0])
sym_type = symtype(unpack_file("<B", f)[0] & 0x7f)
if sym_type == symtype.IMPORT:
continue
sym_filename = read_string(f)
Expand Down

0 comments on commit e225d29

Please sign in to comment.