[TLOZ] Add FileNotFoundError handling for base rom (#1708)
This commit is contained in:
parent
f52ca2571f
commit
d3baca9251
worlds/tloz
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue