Adding 'O' to ROM header to indicate a seed from OWR branch

This commit is contained in:
codemann8
2022-02-04 06:47:33 -06:00
parent 9263c80cce
commit a7a148ed18

2
Rom.py
View File

@@ -1674,7 +1674,7 @@ def patch_rom(world, rom, player, team, enemized, is_mystery=False):
from Main import __version__
seedstring = f'{world.seed:09}' if isinstance(world.seed, int) else world.seed
# todo: change to DR when Enemizer is okay with DR
rom.name = bytearray(f'ER{__version__.split("-")[0].replace(".","")[0:3]}_{team+1}_{player}_{seedstring}\0', 'utf8')[:21]
rom.name = bytearray(f'ER{__version__.split("-")[0].replace(".","")[0:3]}_{team+1}_{player}_{seedstring}O\0', 'utf8')[:21]
rom.name.extend([0] * (21 - len(rom.name)))
rom.write_bytes(0x7FC0, rom.name)