Skip to content

Commit

Permalink
LADX: Moved ROM requirement from generate_output to stage_assert_gene…
Browse files Browse the repository at this point in the history
…rate. (ArchipelagoMW#3540)

Co-authored-by: Mrks <markus.burmeister@mburm.de>
  • Loading branch information
2 people authored and GameWyrm committed Jul 4, 2024
1 parent 7d8382a commit 87a56aa
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions worlds/ladx/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import bsdiff4

import settings
from BaseClasses import Entrance, Item, ItemClassification, Location, Tutorial
from BaseClasses import Entrance, Item, ItemClassification, Location, Tutorial, MultiWorld
from Fill import fill_restrictive
from worlds.AutoWorld import WebWorld, World
from .Common import *
Expand All @@ -24,7 +24,7 @@
from .Locations import (LinksAwakeningLocation, LinksAwakeningRegion,
create_regions_from_ladxr, get_locations_to_id)
from .Options import DungeonItemShuffle, links_awakening_options, ShuffleInstruments
from .Rom import LADXDeltaPatch
from .Rom import LADXDeltaPatch, get_base_rom_path

DEVELOPER_MODE = False

Expand Down Expand Up @@ -433,6 +433,12 @@ def guess_icon_for_other_world(self, other):

return "TRADING_ITEM_LETTER"

@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 generate_output(self, output_directory: str):
# copy items back to locations
for r in self.multiworld.get_regions(self.player):
Expand Down

0 comments on commit 87a56aa

Please sign in to comment.