Skip to content

Commit

Permalink
fix(rom): fails if shuttle_id longer than 4 chars
Browse files Browse the repository at this point in the history
  • Loading branch information
urish committed Nov 20, 2023
1 parent 17f91ae commit d551a4c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rom.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ def write_rom(self):

assert len(rom_text) < MAX_ROM_TEXT_SIZE, "ROM text too long"

rom[0:4] = map(segment_char, self.config["id"])
shuttle_id = self.config["id"][:8]
rom[0 : len(shuttle_id)] = map(segment_char, shuttle_id)
rom[8:16] = map(segment_char, short_sha.upper())
rom[32 : 32 + len(rom_text)] = rom_text.encode("ascii")

Expand Down

0 comments on commit d551a4c

Please sign in to comment.