From d6f3b27695a971ae0b0a18356709c0ef6d40e709 Mon Sep 17 00:00:00 2001 From: black-sliver <59490463+black-sliver@users.noreply.github.com> Date: Tue, 28 Feb 2023 09:11:17 +0100 Subject: [PATCH] DKC3, SMW: use user_path for file Same as for other games, this will resolve to ~/Archipelago on Linux, if the install folder is read-only --- worlds/dkc3/Rom.py | 2 +- worlds/smw/Rom.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/worlds/dkc3/Rom.py b/worlds/dkc3/Rom.py index 37b8ecf0..c193e909 100644 --- a/worlds/dkc3/Rom.py +++ b/worlds/dkc3/Rom.py @@ -740,5 +740,5 @@ def get_base_rom_path(file_name: str = "") -> str: if not file_name: file_name = options["dkc3_options"]["rom_file"] if not os.path.exists(file_name): - file_name = Utils.local_path(file_name) + file_name = Utils.user_path(file_name) return file_name diff --git a/worlds/smw/Rom.py b/worlds/smw/Rom.py index 5a4e9b53..ffd89237 100644 --- a/worlds/smw/Rom.py +++ b/worlds/smw/Rom.py @@ -971,5 +971,5 @@ def get_base_rom_path(file_name: str = "") -> str: if not file_name: file_name = options["smw_options"]["rom_file"] if not os.path.exists(file_name): - file_name = Utils.local_path(file_name) + file_name = Utils.user_path(file_name) return file_name