From 2118571ca2f6c76b0bee0ca90a63157d120a1161 Mon Sep 17 00:00:00 2001 From: Abdessamad Derraz <3028866+Abdess@users.noreply.github.com> Date: Sat, 28 Mar 2026 18:45:36 +0100 Subject: [PATCH] fix: emudeck detection path and base url override --- install.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/install.py b/install.py index db808840..675d20b3 100644 --- a/install.py +++ b/install.py @@ -26,7 +26,10 @@ import urllib.error import urllib.request from pathlib import Path -BASE_URL = "https://raw.githubusercontent.com/Abdess/retrobios/main" +BASE_URL = os.environ.get( + "RETROBIOS_BASE_URL", + "https://raw.githubusercontent.com/Abdess/retrobios/main", +) MANIFEST_URL = f"{BASE_URL}/install/{{platform}}.json" TARGETS_URL = f"{BASE_URL}/install/targets/{{platform}}.json" RAW_FILE_URL = f"{BASE_URL}/{{path}}" @@ -176,7 +179,7 @@ def detect_platforms(os_type: str) -> list[tuple[str, Path]]: # EmuDeck (Linux/SteamOS) home = Path.home() - emudeck_settings = home / "emudeck" / "settings.sh" + emudeck_settings = home / ".config" / "EmuDeck" / "settings.sh" if emudeck_settings.exists(): emu_path = _parse_bash_var(emudeck_settings, "emulationPath") if emu_path: @@ -220,7 +223,7 @@ def detect_platforms(os_type: str) -> list[tuple[str, Path]]: if os_type in ("windows", "wsl"): # EmuDeck Windows home = Path.home() - emudeck_ps1 = home / "emudeck" / "settings.ps1" + emudeck_ps1 = Path(os.environ.get("APPDATA", "")) / "EmuDeck" / "settings.ps1" if emudeck_ps1.exists(): emu_path = _parse_ps1_var(emudeck_ps1, "$emulationPath") if emu_path: