Check for ROMs at beginning of generation (#475)

This commit is contained in:
espeon65536
2022-04-29 20:37:28 -05:00
committed by GitHub
parent e8579771a5
commit 894a30b9bd
8 changed files with 37 additions and 0 deletions

View File

@@ -89,6 +89,10 @@ class OOTWorld(World):
self.hint_data_available = threading.Event()
super(OOTWorld, self).__init__(world, player)
@classmethod
def stage_assert_generate(cls, world: MultiWorld):
rom = Rom(file=get_options()['oot_options']['rom_file'])
def generate_early(self):
# Player name MUST be at most 16 bytes ascii-encoded, otherwise won't write to ROM correctly
if len(bytes(self.world.get_player_name(self.player), 'ascii')) > 16: