diff options
author | Rangi <remy.oukaour+rangi42@gmail.com> | 2021-05-09 12:47:43 -0400 |
---|---|---|
committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2021-05-09 12:47:43 -0400 |
commit | 65d1e12d6ac15937977d28651a656ff255ea0d5d (patch) | |
tree | 53cecd90548df6957851b2341cdaf2a060d68255 /tools/unnamed.py | |
parent | 2a9ae6ecefe12e798c15e7a37a77005f5373aa9d (diff) |
Require rgbds 0.5.1
Use some new features: \<10> macro args, SECTION UNION, SIZEOF/STARTOF, and CHARLEN/CHARSUB
Diffstat (limited to 'tools/unnamed.py')
-rwxr-xr-x | tools/unnamed.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/unnamed.py b/tools/unnamed.py index 70424ab1..94ec9d51 100755 --- a/tools/unnamed.py +++ b/tools/unnamed.py @@ -82,14 +82,14 @@ for objfile in objects: elif magic == b'RGB9': obj_ver = 10 + unpack_file("<I", f)[0] - if obj_ver not in [6, 10, 11, 12, 13, 15, 16, 17]: + if obj_ver not in [6, 10, 11, 12, 13, 15, 16, 17, 18]: print("Error: File '%s' is of an unknown format." % objfile, file=stderr) exit(1) num_symbols = unpack_file("<I", f)[0] unpack_file("<I", f) # skip num sections - if obj_ver in [16, 17]: + if obj_ver in [16, 17, 18]: node_filenames = [] num_nodes = unpack_file("<I", f)[0] for x in range(num_nodes): @@ -109,7 +109,7 @@ for objfile in objects: sym_type = symtype(unpack_file("<B", f)[0] & 0x7f) if sym_type == symtype.IMPORT: continue - if obj_ver in [16, 17]: + if obj_ver in [16, 17, 18]: sym_fileno = unpack_file("<I", f)[0] sym_filename = node_filenames[sym_fileno] else: |