From a2bf1c6f8ebfd442225e808657e4d1a5bcf3c56d Mon Sep 17 00:00:00 2001 From: Abdessamad Derraz <3028866+Abdess@users.noreply.github.com> Date: Mon, 9 Nov 2026 17:28:00 +0100 Subject: [PATCH] feat: record the uae4all working directory RetroPie starts UAE4All2 with pushd $md_inst, the directory whose kickstarts folder it links to BIOS/amiga. The scriptmodule reader now emits that working directory as it does for DraStic. --- platforms/retropie.yml | 9 +++++++++ scripts/scraper/retropie_launchers.py | 7 ++++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/platforms/retropie.yml b/platforms/retropie.yml index 2402aa0dc..cc54b45a2 100644 --- a/platforms/retropie.yml +++ b/platforms/retropie.yml @@ -1181,6 +1181,15 @@ launchers: fails_when_missing: false depends_on_option: "[[ ! -f \"$biosdir/aros-amiga-m68k-ext.bin\" ]]" source_ref: "scriptmodules/emulators/uae4all.sh:85" +- emulator: uae4all + package: uae4all + build: standalone + kind: passes_path + names: [] + search_dir: $md_inst + passes_to: working directory of $romdir/amiga/+Start UAE4All.sh + fails_when_missing: false + source_ref: "scriptmodules/emulators/uae4all.sh:90" - emulator: uae4arm package: uae4arm repo: "git https://github.com/Chips-fr/uae4arm-rpi.git master" diff --git a/scripts/scraper/retropie_launchers.py b/scripts/scraper/retropie_launchers.py index 320ab841a..65c03d28d 100644 --- a/scripts/scraper/retropie_launchers.py +++ b/scripts/scraper/retropie_launchers.py @@ -49,9 +49,10 @@ OUTSIDE_BIOS: dict[str, tuple[str, ...]] = { } # Packages whose emulator reads its system files below the working directory -# the generated launch script enters with pushd, a folder outside $biosdir: -# DraStic opens system/ under it. Each must still pushd. -WORKING_DIRECTORY: tuple[str, ...] = ("drastic",) +# the generated launch script enters with pushd: DraStic opens system/ +# under it, UAE4All2 kickstarts/ (its launchDir is getcwd()). Each must +# still pushd. +WORKING_DIRECTORY: tuple[str, ...] = ("drastic", "uae4all") _FUNCTION = re.compile(r"^function\s+([\w.+-]+)\s*\(\)\s*\{\s*$") _ASSIGN = re.compile(r"^(?:local\s+)?([A-Za-z_]\w*)=(.*)$")