diff options
| author | Rangi42 <sylvie.oukaour+rangi42@gmail.com> | 2025-05-10 13:58:23 -0400 |
|---|---|---|
| committer | Rangi42 <sylvie.oukaour+rangi42@gmail.com> | 2025-05-10 13:58:23 -0400 |
| commit | 1dc60f0cae50626bf4850e40a4a61086d3c76e62 (patch) | |
| tree | ab994d71d08725dbc2df9d4ef964803ac2f2ffbf /tools | |
| parent | Improve IsSurfingPikachuInParty documentation (#128) (diff) | |
| download | pokeyellow-1dc60f0cae50626bf4850e40a4a61086d3c76e62.tar.gz pokeyellow-1dc60f0cae50626bf4850e40a4a61086d3c76e62.tar.xz pokeyellow-1dc60f0cae50626bf4850e40a4a61086d3c76e62.zip | |
tools/unnamed.py supports RGBDS 0.9.2 (object revision 12)
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 4e8811be..f3384eb0 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, 21]: + if obj_ver not in [6, 10, 11, 12, 13, 15, 16, 17, 18, 19, 20, 21, 22]: 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, 21]: + if obj_ver in [16, 17, 18, 19, 20, 21, 22]: 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, 21]: + if obj_ver in [16, 17, 18, 19, 20, 21, 22]: sym_fileno = unpack_from('<I', file)[0] sym_filename = node_filenames[sym_fileno] else: |
