Stop using get_options (#5341)

This commit is contained in:
PoryGone
2025-08-27 09:21:53 -04:00
committed by GitHub
parent e11b40c94b
commit 750c8a9810
3 changed files with 6 additions and 5 deletions

View File

@@ -3185,9 +3185,9 @@ def get_base_rom_bytes(file_name: str = "") -> bytes:
def get_base_rom_path(file_name: str = "") -> str:
options = Utils.get_options()
if not file_name:
file_name = options["smw_options"]["rom_file"]
from settings import get_settings
file_name = get_settings()["smw_options"]["rom_file"]
if not os.path.exists(file_name):
file_name = Utils.user_path(file_name)
return file_name