SoE: remove use of deprecated Utils.get_options() (#4821)

This commit is contained in:
black-sliver
2025-04-06 17:00:14 +02:00
committed by GitHub
parent 63fbcc5fc8
commit 8c79499573

View File

@@ -4,7 +4,6 @@ from typing import BinaryIO, Optional
import Utils
from worlds.Files import APDeltaPatch
USHASH = '6e9c94511d04fac6e0a1e582c170be3a'
@@ -20,9 +19,9 @@ class SoEDeltaPatch(APDeltaPatch):
def get_base_rom_path(file_name: Optional[str] = None) -> str:
options = Utils.get_options()
if not file_name:
file_name = options["soe_options"]["rom_file"]
from . import SoEWorld
file_name = SoEWorld.settings.rom_file
if not file_name:
raise ValueError("Missing soe_options -> rom_file from host.yaml")
if not os.path.exists(file_name):