diff options
| author | Rangi42 <remy.oukaour+rangi42@gmail.com> | 2024-06-28 16:07:22 -0400 |
|---|---|---|
| committer | Rangi42 <remy.oukaour+rangi42@gmail.com> | 2024-06-28 16:07:22 -0400 |
| commit | 4709eb3a96c57f00168c30da9186eb0111ac3b66 (patch) | |
| tree | 3e2b11acfc7283322619ce7451d84acb725a68da /tools | |
| parent | Improve documentation of some SRAM routines (#114) (diff) | |
| download | pokeyellow-4709eb3a96c57f00168c30da9186eb0111ac3b66.tar.gz pokeyellow-4709eb3a96c57f00168c30da9186eb0111ac3b66.tar.xz pokeyellow-4709eb3a96c57f00168c30da9186eb0111ac3b66.zip | |
Build with RGBDS 0.8.0, though it is not yet required
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 bc7e38db..70ff2352 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]: + if obj_ver not in [6, 10, 11, 12, 13, 15, 16, 17, 18, 19, 20]: 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]: + if obj_ver in [16, 17, 18, 19, 20]: 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]: + if obj_ver in [16, 17, 18, 19, 20]: sym_fileno = unpack_from('<I', file)[0] sym_filename = node_filenames[sym_fileno] else: |
