diff --git a/worlds/mmbn6/__init__.py b/worlds/mmbn6/__init__.py index 423b14aee3ca..563fabf301af 100644 --- a/worlds/mmbn6/__init__.py +++ b/worlds/mmbn6/__init__.py @@ -1031,6 +1031,13 @@ def generate_output(self, output_directory: str) -> None: if os.path.exists(rompath): os.unlink(rompath) + @classmethod + def stage_assert_generate(cls, multiworld: "MultiWorld") -> None: + for world in multiworld.get_game_worlds("MegaMan Battle Network 6"): + rom_file = get_base_rom_path(game_version=world.options.game_version.current_key) + if not os.path.exists(rom_file): + raise FileNotFoundError(rom_file) + def create_item(self, name: str) -> "Item": item = item_table[name] return MMBN6Item(item.itemName, item.progression, item.code, self.player)