diff options
| author | Rangi <35663410+Rangi42@users.noreply.github.com> | 2024-12-25 21:24:25 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-25 21:24:25 -0500 |
| commit | cde1cb7b1f405c2b6e78f19bbc47269c28d87af8 (patch) | |
| tree | 48ddf9febae1f5a4e3fab20a549a3fa54880f697 /tools | |
| parent | Use spaces around operators (diff) | |
| download | pokeyellow-cde1cb7b1f405c2b6e78f19bbc47269c28d87af8.tar.gz pokeyellow-cde1cb7b1f405c2b6e78f19bbc47269c28d87af8.tar.xz pokeyellow-cde1cb7b1f405c2b6e78f19bbc47269c28d87af8.zip | |
Use RGBDS 0.9.0 (#123)
Diffstat (limited to 'tools')
| -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 70ff2352..4e8811be 100755 --- a/tools/unnamed.py +++ b/tools/unnamed.py @@ -90,14 +90,14 @@ for objfile in objects: elif magic == b'RGB9': obj_ver = 10 + unpack_from('<I', file)[0] - if obj_ver not in [6, 10, 11, 12, 13, 15, 16, 17, 18, 19, 20]: + if obj_ver not in [6, 10, 11, 12, 13, 15, 16, 17, 18, 19, 20, 21]: print(f"Error: File '{objfile}' is of an unknown format.", file=sys.stderr) sys.exit(1) num_symbols = unpack_from('<I', file)[0] unpack_from('<I', file) # skip num sections - if obj_ver in [16, 17, 18, 19, 20]: + if obj_ver in [16, 17, 18, 19, 20, 21]: node_filenames = [] num_nodes = unpack_from('<I', file)[0] for x in range(num_nodes): @@ -117,7 +117,7 @@ for objfile in objects: sym_type = symtype(unpack_from('<B', file)[0] & 0x7f) if sym_type == symtype.IMPORT: continue - if obj_ver in [16, 17, 18, 19, 20]: + if obj_ver in [16, 17, 18, 19, 20, 21]: sym_fileno = unpack_from('<I', file)[0] sym_filename = node_filenames[sym_fileno] else: |
