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

@@ -175,6 +175,12 @@ class SoEWorld(World):
res.trap = item.type == pyevermizer.CHECK_TRAP
return res
@classmethod
def stage_assert_generate(cls, world):
rom_file = get_base_rom_path()
if not os.path.exists(rom_file):
raise FileNotFoundError(rom_file)
def create_regions(self):
# TODO: generate *some* regions from locations' requirements?
r = Region('Menu', RegionType.Generic, 'Menu', self.player, self.world)