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

@@ -83,6 +83,12 @@ class SMWorld(World):
self.rom_name_available_event = threading.Event()
super().__init__(world, player)
@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 generate_early(self):
Logic.factory('vanilla')