Skip to content

Commit ee03d6a

Browse files
black-sliverJames McIntosh
authored andcommitted
SoE: remove use of deprecated Utils.get_options() (ArchipelagoMW#4821)
1 parent 589cf58 commit ee03d6a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

worlds/soe/patch.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import Utils
55
from worlds.Files import APDeltaPatch
66

7-
87
USHASH = '6e9c94511d04fac6e0a1e582c170be3a'
98

109

@@ -20,9 +19,9 @@ def get_source_data(cls) -> bytes:
2019

2120

2221
def get_base_rom_path(file_name: Optional[str] = None) -> str:
23-
options = Utils.get_options()
2422
if not file_name:
25-
file_name = options["soe_options"]["rom_file"]
23+
from . import SoEWorld
24+
file_name = SoEWorld.settings.rom_file
2625
if not file_name:
2726
raise ValueError("Missing soe_options -> rom_file from host.yaml")
2827
if not os.path.exists(file_name):

0 commit comments

Comments
 (0)