From 1275b0144c9ce7b36a3981b1cd4a62ee12a4e305 Mon Sep 17 00:00:00 2001 From: RischDev Date: Thu, 13 Nov 2025 21:01:32 -0800 Subject: [PATCH] MMBN6: Fixed a generation issue when both game version ROMs were not provided prior to running the generation script. --- worlds/mmbn6/__init__.py | 7 +++++++ 1 file changed, 7 insertions(+) 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)