Skip to content

Commit bb457b0

Browse files
author
threeandthreee
authored
SNI Client: fix that it isnt using host.yaml settings (ArchipelagoMW#5533)
1 parent 6276ccf commit bb457b0

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

SNIClient.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from CommonClient import CommonContext, server_loop, ClientCommandProcessor, gui_enabled, get_base_parser
1919

2020
import Utils
21-
from settings import Settings
21+
import settings
2222
from Utils import async_start
2323
from MultiServer import mark_raw
2424
if typing.TYPE_CHECKING:
@@ -286,7 +286,7 @@ class SNESState(enum.IntEnum):
286286

287287

288288
def launch_sni() -> None:
289-
sni_path = Settings.sni_options.sni_path
289+
sni_path = settings.get_settings().sni_options.sni_path
290290

291291
if not os.path.isdir(sni_path):
292292
sni_path = Utils.local_path(sni_path)
@@ -669,7 +669,7 @@ async def game_watcher(ctx: SNIContext) -> None:
669669

670670

671671
async def run_game(romfile: str) -> None:
672-
auto_start = Settings.sni_options.snes_rom_start
672+
auto_start = settings.get_settings().sni_options.snes_rom_start
673673
if auto_start is True:
674674
import webbrowser
675675
webbrowser.open(romfile)

0 commit comments

Comments
 (0)