Main: add __all__ and change wrong imports (#1824)

* Main: add __all__ and change wrong imports

* Adjusters: fix __version__ import
This commit is contained in:
black-sliver
2023-05-20 19:21:39 +02:00
committed by GitHub
parent b1c5456d18
commit 324d3cf042
8 changed files with 9 additions and 7 deletions

View File

@@ -1658,7 +1658,7 @@ def patch_rom(world: MultiWorld, rom: LocalRom, player: int, enemized: bool):
# set rom name
# 21 bytes
from Main import __version__
from Utils import __version__
rom.name = bytearray(f'AP{__version__.replace(".", "")[0:3]}_{player}_{world.seed:11}\0', 'utf8')[:21]
rom.name.extend([0] * (21 - len(rom.name)))
rom.write_bytes(0x7FC0, rom.name)