[TLOZ] Add FileNotFoundError handling for base rom (#1708)

This commit is contained in:
t3hf1gm3nt
2023-04-14 23:40:48 -04:00
committed by GitHub
parent f52ca2571f
commit d3baca9251

View File

@@ -77,6 +77,12 @@ class TLoZWorld(World):
self.levels = None
self.filler_items = None
@classmethod
def stage_assert_generate(cls, multiworld: MultiWorld):
rom_file = get_base_rom_path()
if not os.path.exists(rom_file):
raise FileNotFoundError(rom_file)
def create_item(self, name: str):
return TLoZItem(name, item_table[name].classification, self.item_name_to_id[name], self.player)