mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
SoE: remove use of deprecated Utils.get_options() (#4821)
This commit is contained in:
@@ -4,7 +4,6 @@ from typing import BinaryIO, Optional
|
|||||||
import Utils
|
import Utils
|
||||||
from worlds.Files import APDeltaPatch
|
from worlds.Files import APDeltaPatch
|
||||||
|
|
||||||
|
|
||||||
USHASH = '6e9c94511d04fac6e0a1e582c170be3a'
|
USHASH = '6e9c94511d04fac6e0a1e582c170be3a'
|
||||||
|
|
||||||
|
|
||||||
@@ -20,9 +19,9 @@ class SoEDeltaPatch(APDeltaPatch):
|
|||||||
|
|
||||||
|
|
||||||
def get_base_rom_path(file_name: Optional[str] = None) -> str:
|
def get_base_rom_path(file_name: Optional[str] = None) -> str:
|
||||||
options = Utils.get_options()
|
|
||||||
if not file_name:
|
if not file_name:
|
||||||
file_name = options["soe_options"]["rom_file"]
|
from . import SoEWorld
|
||||||
|
file_name = SoEWorld.settings.rom_file
|
||||||
if not file_name:
|
if not file_name:
|
||||||
raise ValueError("Missing soe_options -> rom_file from host.yaml")
|
raise ValueError("Missing soe_options -> rom_file from host.yaml")
|
||||||
if not os.path.exists(file_name):
|
if not os.path.exists(file_name):
|
||||||
|
Reference in New Issue
Block a user